; LLVM IR from Dovyski/opengl-demos :: libs/glm-0.9.9.3/test/core/core_type_mat2x2.ll (Z12test_inversev)

; 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::mat" = type { [2 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { i8, i8 }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #1 align 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12test_inversev() #2 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.glm::mat", align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.glm::mat", align 4
  %8 = alloca %"struct.glm::mat", align 4
  %9 = alloca %"struct.glm::vec.2", align 1
  %10 = alloca %"struct.glm::vec", align 4
  %11 = alloca %"struct.glm::vec", align 4
  %12 = alloca %"struct.glm::vec.2", align 1
  %13 = alloca %"struct.glm::vec", align 4
  %14 = alloca %"struct.glm::vec", align 4
  %15 = alloca %"struct.glm::mat", align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.glm::mat", align 4
  %21 = alloca %"struct.glm::vec.2", align 1
  %22 = alloca %"struct.glm::vec", align 4
  %23 = alloca %"struct.glm::vec", align 4
  %24 = alloca %"struct.glm::vec.2", align 1
  %25 = alloca %"struct.glm::vec", align 4
  %26 = alloca %"struct.glm::vec", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 1, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 2, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 3, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 4, ptr %6, align 4, !tbaa !5
  call void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2IiiiiEERKT_RKT0_RKT1_RKT2_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %27 = call { <2 x float>, <2 x float> } @_ZN3glm7inverseILi2ELi2EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr noundef nonnull align 4 dereferenceable(16) %2)
  %28 = getelementptr inbounds %"struct.glm::mat", ptr %7, i32 0, i32 0
  %29 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 0
  %30 = extractvalue { <2 x float>, <2 x float> } %27, 0
  store <2 x float> %30, ptr %29, align 4
  %31 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 1
  %32 = extractvalue { <2 x float>, <2 x float> } %27, 1
  store <2 x float> %32, ptr %31, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %33 = call { <2 x float>, <2 x float> } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi2ELi2ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %7)
  %34 = getelementptr inbounds %"struct.glm::mat", ptr %8, i32 0, i32 0
  %35 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %34, i32 0, i32 0
  %36 = extractvalue { <2 x float>, <2 x float> } %33, 0
  store <2 x float> %36, ptr %35, align 4
  %37 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %34, i32 0, i32 1
  %38 = extractvalue { <2 x float>, <2 x float> } %33, 1
  store <2 x float> %38, ptr %37, align 4
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #5
  %39 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 0x3F847AE140000000)
  %40 = call i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8) %39, ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %41 = getelementptr inbounds %"struct.glm::vec.2", ptr %9, i32 0, i32 0
  %42 = getelementptr inbounds %union.anon.3, ptr %41, i32 0, i32 0
  store i16 %40, ptr %42, align 1
  %43 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %9)
  %44 = zext i1 %43 to i64
  %45 = select i1 %43, i32 0, i32 1
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = add nsw i32 %46, %45
  store i32 %47, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #5
  %48 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 0x3F847AE140000000)
  %49 = call i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8) %48, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %14)
  %50 = getelementptr inbounds %"struct.glm::vec.2", ptr %12, i32 0, i32 0
  %51 = getelementptr inbounds %union.anon.3, ptr %50, i32 0, i32 0
  store i16 %49, ptr %51, align 1
  %52 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %12)
  %53 = zext i1 %52 to i64
  %54 = select i1 %52, i32 0, i32 1
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = add nsw i32 %55, %54
  store i32 %56, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 1, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 2, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 3, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 4, ptr %19, align 4, !tbaa !5
  call void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2IiiiiEERKT_RKT0_RKT1_RKT2_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %19)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %57 = call { <2 x float>, <2 x float> } @_ZN3glmdvIfLNS_9qualifierE0EEENS_3matILi2ELi2ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %15)
  %58 = getelementptr inbounds %"struct.glm::mat", ptr %20, i32 0, i32 0
  %59 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %58, i32 0, i32 0
  %60 = extractvalue { <2 x float>, <2 x float> } %57, 0
  store <2 x float> %60, ptr %59, align 4
  %61 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %58, i32 0, i32 1
  %62 = extractvalue { <2 x float>, <2 x float> } %57, 1
  store <2 x float> %62, ptr %61, align 4
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #5
  %63 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %20, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %22, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef 0x3F847AE140000000)
  %64 = call i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8) %63, ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
  %65 = getelementptr inbounds %"struct.glm::vec.2", ptr %21, i32 0, i32 0
  %66 = getelementptr inbounds %union.anon.3, ptr %65, i32 0, i32 0
  store i16 %64, ptr %66, align 1
  %67 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %21)
  %68 = zext i1 %67 to i64
  %69 = select i1 %67, i32 0, i32 1
  %70 = load i32, ptr %1, align 4, !tbaa !5
  %71 = add nsw i32 %70, %69
  store i32 %71, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #5
  %72 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %20, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %25, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %26, float noundef 0x3F847AE140000000)
  %73 = call i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8) %72, ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %26)
  %74 = getelementptr inbounds %"struct.glm::vec.2", ptr %24, i32 0, i32 0
  %75 = getelementptr inbounds %union.anon.3, ptr %74, i32 0, i32 0
  store i16 %73, ptr %75, align 1
  %76 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %24)
  %77 = zext i1 %76 to i64
  %78 = select i1 %76, i32 0, i32 1
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %80 = add nsw i32 %79, %78
  store i32 %80, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  %81 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 %81
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2IiiiiEERKT_RKT0_RKT1_RKT2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { inlinehint 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 = { 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"}


; 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::mat" = type { [2 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float }
%"struct.glm::vec.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { i8, i8 }

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #1 align 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 5) i32 @_Z12test_inversev() local_unnamed_addr #2 {
  %1 = alloca %"struct.glm::mat", align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.glm::mat", align 8
  %7 = alloca %"struct.glm::mat", align 8
  %8 = alloca %"struct.glm::vec.2", align 2
  %9 = alloca %"struct.glm::vec", align 4
  %10 = alloca %"struct.glm::vec", align 4
  %11 = alloca %"struct.glm::vec.2", align 2
  %12 = alloca %"struct.glm::vec", align 4
  %13 = alloca %"struct.glm::vec", align 4
  %14 = alloca %"struct.glm::mat", align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.glm::mat", align 8
  %20 = alloca %"struct.glm::vec.2", align 2
  %21 = alloca %"struct.glm::vec", align 4
  %22 = alloca %"struct.glm::vec", align 4
  %23 = alloca %"struct.glm::vec.2", align 2
  %24 = alloca %"struct.glm::vec", align 4
  %25 = alloca %"struct.glm::vec", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 2, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 3, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 4, ptr %5, align 4, !tbaa !5
  call void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2IiiiiEERKT_RKT0_RKT1_RKT2_(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %26 = call { <2 x float>, <2 x float> } @_ZN3glm7inverseILi2ELi2EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr noundef nonnull align 4 dereferenceable(16) %1)
  %27 = extractvalue { <2 x float>, <2 x float> } %26, 0
  store <2 x float> %27, ptr %6, align 8
  %28 = getelementptr inbounds i8, ptr %6, i64 8
  %29 = extractvalue { <2 x float>, <2 x float> } %26, 1
  store <2 x float> %29, ptr %28, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %30 = call { <2 x float>, <2 x float> } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi2ELi2ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %31 = extractvalue { <2 x float>, <2 x float> } %30, 0
  store <2 x float> %31, ptr %7, align 8
  %32 = getelementptr inbounds i8, ptr %7, i64 8
  %33 = extractvalue { <2 x float>, <2 x float> } %30, 1
  store <2 x float> %33, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #5
  %34 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %7, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef 0x3F847AE140000000)
  %35 = call i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store i16 %35, ptr %8, align 2
  %36 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %8)
  %not. = xor i1 %36, true
  %37 = zext i1 %not. to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %11) #5
  %38 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %7, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef 0x3F847AE140000000)
  %39 = call i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8) %38, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store i16 %39, ptr %11, align 2
  %40 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %11)
  %not.5 = xor i1 %40, true
  %41 = zext i1 %not.5 to i32
  %42 = add nuw nsw i32 %41, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  store i32 1, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  store i32 2, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #5
  store i32 3, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #5
  store i32 4, ptr %18, align 4, !tbaa !5
  call void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2IiiiiEERKT_RKT0_RKT1_RKT2_(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  %43 = call { <2 x float>, <2 x float> } @_ZN3glmdvIfLNS_9qualifierE0EEENS_3matILi2ELi2ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(16) %14)
  %44 = extractvalue { <2 x float>, <2 x float> } %43, 0
  store <2 x float> %44, ptr %19, align 8
  %45 = getelementptr inbounds i8, ptr %19, i64 8
  %46 = extractvalue { <2 x float>, <2 x float> } %43, 1
  store <2 x float> %46, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %20) #5
  %47 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %19, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %22, float noundef 0x3F847AE140000000)
  %48 = call i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8) %47, ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %22)
  store i16 %48, ptr %20, align 2
  %49 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %20)
  %not.6 = xor i1 %49, true
  %50 = zext i1 %not.6 to i32
  %51 = add nuw nsw i32 %42, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %23) #5
  %52 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %19, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #5
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(8) %25, float noundef 0x3F847AE140000000)
  %53 = call i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %25)
  store i16 %53, ptr %23, align 2
  %54 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %23)
  %not.7 = xor i1 %54, true
  %55 = zext i1 %not.7 to i32
  %56 = add nuw nsw i32 %51, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  ret i32 %56
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2IiiiiEERKT_RKT0_RKT1_RKT2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i16 @_ZN3glm5equalILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_S7_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { inlinehint 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 = { 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"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass