; LLVM IR from Dovyski/opengl-demos :: libs/glm-0.9.9.3/test/core/core_func_matrix.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.32" = type { [4 x %"struct.glm::vec.19"] }
%"struct.glm::vec.19" = type { %union.anon.20 }
%union.anon.20 = type { %struct.anon.21 }
%struct.anon.21 = type { float, float, float, float }
%"struct.glm::vec.24" = type { %union.anon.25 }
%union.anon.25 = type { %struct.anon.26 }
%struct.anon.26 = type { i8, i8, i8, i8 }
%"struct.glm::mat.29" = type { [3 x %"struct.glm::vec.8"] }
%"struct.glm::vec.8" = type { %union.anon.9 }
%union.anon.9 = type { %struct.anon.10 }
%struct.anon.10 = type { float, float, float }
%"struct.glm::vec.13" = type { %union.anon.14 }
%union.anon.14 = type { %struct.anon.15 }
%struct.anon.15 = type { i8, i8, i8 }
%"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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EE6lengthEv() #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EE6lengthEv() #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EE6lengthEv() #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12test_inversev() #5 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.glm::mat.32", align 4
  %3 = alloca %"struct.glm::vec.19", align 4
  %4 = alloca %"struct.glm::vec.19", align 4
  %5 = alloca %"struct.glm::vec.19", align 4
  %6 = alloca %"struct.glm::vec.19", align 4
  %7 = alloca %"struct.glm::mat.32", align 4
  %8 = alloca %"struct.glm::mat.32", align 4
  %9 = alloca %"struct.glm::mat.32", align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.glm::vec.24", align 1
  %13 = alloca float, align 4
  %14 = alloca %"struct.glm::mat.29", align 4
  %15 = alloca %"struct.glm::vec.8", align 4
  %16 = alloca %"struct.glm::vec.8", align 4
  %17 = alloca %"struct.glm::vec.8", align 4
  %18 = alloca %"struct.glm::mat.29", align 4
  %19 = alloca %"struct.glm::mat.29", align 4
  %20 = alloca %"struct.glm::mat.29", align 4
  %21 = alloca i32, align 4
  %22 = alloca %"struct.glm::vec.13", align 1
  %23 = alloca float, align 4
  %24 = alloca %"struct.glm::mat", align 4
  %25 = alloca %"struct.glm::vec", align 4
  %26 = alloca %"struct.glm::vec", align 4
  %27 = alloca %"struct.glm::mat", align 4
  %28 = alloca %"struct.glm::mat", align 4
  %29 = alloca %"struct.glm::mat", align 4
  %30 = alloca i32, align 4
  %31 = alloca %"struct.glm::vec.2", align 1
  %32 = alloca float, 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 64, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2IiiiiEET_T0_T1_T2_(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 1, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2IiiiiEET_T0_T1_T2_(ptr noundef nonnull align 4 dereferenceable(16) %4, i32 noundef 0, i32 noundef 1, i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2IiiiiEET_T0_T1_T2_(ptr noundef nonnull align 4 dereferenceable(16) %5, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2IiiiiEET_T0_T1_T2_(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1)
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKNS_3vecILi4EfLS1_0EEES6_S6_S6_(ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #6
  call void @_ZN3glm7inverseILi4ELi4EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::mat.32") align 4 %7, ptr noundef nonnull align 4 dereferenceable(64) %2)
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #6
  call void @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S6_(ptr dead_on_unwind writable sret(%"struct.glm::mat.32") align 4 %8, ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(64) %7)
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store float 1.000000e+00, ptr %10, align 4, !tbaa !9
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %52, %0
  %34 = load i32, ptr %11, align 4, !tbaa !5
  %35 = call noundef i32 @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EE6lengthEv()
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %55

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %39 = load i32, ptr %11, align 4, !tbaa !5
  %40 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %8, i32 noundef %39)
  %41 = load i32, ptr %11, align 4, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %9, i32 noundef %41)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %43 = call noundef float @_ZN3glm7epsilonIfEET_v()
  store float %43, ptr %13, align 4, !tbaa !9
  %44 = call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %40, ptr noundef nonnull align 4 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %45 = getelementptr inbounds %"struct.glm::vec.24", ptr %12, i32 0, i32 0
  %46 = getelementptr inbounds %union.anon.25, ptr %45, i32 0, i32 0
  store i32 %44, ptr %46, align 1
  %47 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %12)
  %48 = zext i1 %47 to i64
  %49 = select i1 %47, i32 0, i32 1
  %50 = load i32, ptr %1, align 4, !tbaa !5
  %51 = add nsw i32 %50, %49
  store i32 %51, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %52

52:                                               ; preds = %38
  %53 = load i32, ptr %11, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %11, align 4, !tbaa !5
  br label %33, !llvm.loop !11

55:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #6
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 1, i32 noundef 0, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #6
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #6
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 0, i32 noundef 0, i32 noundef 1)
  call void @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_S6_(ptr noundef nonnull align 4 dereferenceable(36) %14, ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr %18) #6
  call void @_ZN3glm7inverseILi3ELi3EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr dead_on_unwind writable sret(%"struct.glm::mat.29") align 4 %18, ptr noundef nonnull align 4 dereferenceable(36) %14)
  call void @llvm.lifetime.start.p0(i64 36, ptr %19) #6
  call void @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi3ELi3ET_XT0_EEERKS4_S6_(ptr dead_on_unwind writable sret(%"struct.glm::mat.29") align 4 %19, ptr noundef nonnull align 4 dereferenceable(36) %14, ptr noundef nonnull align 4 dereferenceable(36) %18)
  call void @llvm.lifetime.start.p0(i64 36, ptr %20) #6
  call void @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(36) %20, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %75, %55
  %57 = load i32, ptr %21, align 4, !tbaa !5
  %58 = call noundef i32 @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EE6lengthEv()
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %78

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 3, ptr %22) #6
  %62 = load i32, ptr %21, align 4, !tbaa !5
  %63 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(36) %19, i32 noundef %62)
  %64 = load i32, ptr %21, align 4, !tbaa !5
  %65 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(36) %20, i32 noundef %64)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %66 = call noundef float @_ZN3glm7epsilonIfEET_v()
  store float %66, ptr %23, align 4, !tbaa !9
  %67 = call i24 @_ZN3glm12epsilonEqualILi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(12) %63, ptr noundef nonnull align 4 dereferenceable(12) %65, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %68 = getelementptr inbounds %"struct.glm::vec.13", ptr %22, i32 0, i32 0
  %69 = getelementptr inbounds %union.anon.14, ptr %68, i32 0, i32 0
  store i24 %67, ptr %69, align 1
  %70 = call noundef zeroext i1 @_ZN3glm3allILi3ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(3) %22)
  %71 = zext i1 %70 to i64
  %72 = select i1 %70, i32 0, i32 1
  %73 = load i32, ptr %1, align 4, !tbaa !5
  %74 = add nsw i32 %73, %72
  store i32 %74, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %22) #6
  br label %75

75:                                               ; preds = %61
  %76 = load i32, ptr %21, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %21, align 4, !tbaa !5
  br label %56, !llvm.loop !13

78:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 36, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8) %25, i32 noundef 1, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8) %26, i32 noundef 0, i32 noundef 1)
  call void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2ERKNS_3vecILi2EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %26)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %79 = call { <2 x float>, <2 x float> } @_ZN3glm7inverseILi2ELi2EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr noundef nonnull align 4 dereferenceable(16) %24)
  %80 = getelementptr inbounds %"struct.glm::mat", ptr %27, i32 0, i32 0
  %81 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %80, i32 0, i32 0
  %82 = extractvalue { <2 x float>, <2 x float> } %79, 0
  store <2 x float> %82, ptr %81, align 4
  %83 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %80, i32 0, i32 1
  %84 = extractvalue { <2 x float>, <2 x float> } %79, 1
  store <2 x float> %84, ptr %83, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %85 = call { <2 x float>, <2 x float> } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi2ELi2ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(16) %27)
  %86 = getelementptr inbounds %"struct.glm::mat", ptr %28, i32 0, i32 0
  %87 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %86, i32 0, i32 0
  %88 = extractvalue { <2 x float>, <2 x float> } %85, 0
  store <2 x float> %88, ptr %87, align 4
  %89 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %86, i32 0, i32 1
  %90 = extractvalue { <2 x float>, <2 x float> } %85, 1
  store <2 x float> %90, ptr %89, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  call void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(16) %29, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %110, %78
  %92 = load i32, ptr %30, align 4, !tbaa !5
  %93 = call noundef i32 @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EE6lengthEv()
  %94 = icmp slt i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %113

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 2, ptr %31) #6
  %97 = load i32, ptr %30, align 4, !tbaa !5
  %98 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %28, i32 noundef %97)
  %99 = load i32, ptr %30, align 4, !tbaa !5
  %100 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %29, i32 noundef %99)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %101 = call noundef float @_ZN3glm7epsilonIfEET_v()
  store float %101, ptr %32, align 4, !tbaa !9
  %102 = call i16 @_ZN3glm12epsilonEqualILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(8) %98, ptr noundef nonnull align 4 dereferenceable(8) %100, ptr noundef nonnull align 4 dereferenceable(4) %32)
  %103 = getelementptr inbounds %"struct.glm::vec.2", ptr %31, i32 0, i32 0
  %104 = getelementptr inbounds %union.anon.3, ptr %103, i32 0, i32 0
  store i16 %102, ptr %104, align 1
  %105 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %31)
  %106 = zext i1 %105 to i64
  %107 = select i1 %105, i32 0, i32 1
  %108 = load i32, ptr %1, align 4, !tbaa !5
  %109 = add nsw i32 %108, %107
  store i32 %109, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %31) #6
  br label %110

110:                                              ; preds = %96
  %111 = load i32, ptr %30, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %30, align 4, !tbaa !5
  br label %91, !llvm.loop !14

113:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  %114 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret i32 %114
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm7inverseILi4ELi4EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat.32") align 4, ptr noundef nonnull align 4 dereferenceable(64)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S6_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat.32") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #3

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

; 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 #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm7inverseILi3ELi3EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat.29") align 4, ptr noundef nonnull align 4 dereferenceable(36)) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi3ELi3ET_XT0_EEERKS4_S6_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat.29") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2ERKNS_3vecILi2EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #4 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)) #3

; 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)) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; 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.32" = type { [4 x %"struct.glm::vec.19"] }
%"struct.glm::vec.19" = type { %union.anon.20 }
%union.anon.20 = type { %struct.anon.21 }
%struct.anon.21 = type { float, float, float, float }
%"struct.glm::vec.24" = type { %union.anon.25 }
%union.anon.25 = type { %struct.anon.26 }
%struct.anon.26 = type { i8, i8, i8, i8 }
%"struct.glm::mat.29" = type { [3 x %"struct.glm::vec.8"] }
%"struct.glm::vec.8" = type { %union.anon.9 }
%union.anon.9 = type { %struct.anon.10 }
%struct.anon.10 = type { float, float, float }
%"struct.glm::vec.13" = type { %union.anon.14 }
%union.anon.14 = type { %struct.anon.15 }
%struct.anon.15 = type { i8, i8, i8 }
%"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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EE6lengthEv() local_unnamed_addr #1 align 2

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

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

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

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

; 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 #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EE6lengthEv() local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(36), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EE6lengthEv() local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z12test_inversev() local_unnamed_addr #5 {
  %1 = alloca %"struct.glm::mat.32", align 4
  %2 = alloca %"struct.glm::vec.19", align 4
  %3 = alloca %"struct.glm::vec.19", align 4
  %4 = alloca %"struct.glm::vec.19", align 4
  %5 = alloca %"struct.glm::vec.19", align 4
  %6 = alloca %"struct.glm::mat.32", align 4
  %7 = alloca %"struct.glm::mat.32", align 4
  %8 = alloca %"struct.glm::mat.32", align 4
  %9 = alloca float, align 4
  %10 = alloca %"struct.glm::vec.24", align 4
  %11 = alloca float, align 4
  %12 = alloca %"struct.glm::mat.29", align 4
  %13 = alloca %"struct.glm::vec.8", align 4
  %14 = alloca %"struct.glm::vec.8", align 4
  %15 = alloca %"struct.glm::vec.8", align 4
  %16 = alloca %"struct.glm::mat.29", align 4
  %17 = alloca %"struct.glm::mat.29", align 4
  %18 = alloca %"struct.glm::mat.29", align 4
  %19 = alloca %"struct.glm::vec.13", align 4
  %20 = alloca float, align 4
  %21 = alloca %"struct.glm::mat", align 4
  %22 = alloca %"struct.glm::vec", align 4
  %23 = alloca %"struct.glm::vec", align 4
  %24 = alloca %"struct.glm::mat", align 8
  %25 = alloca %"struct.glm::mat", align 8
  %26 = alloca %"struct.glm::mat", align 4
  %27 = alloca %"struct.glm::vec.2", align 2
  %28 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2IiiiiEET_T0_T1_T2_(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 1, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2IiiiiEET_T0_T1_T2_(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 0, i32 noundef 1, i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2IiiiiEET_T0_T1_T2_(ptr noundef nonnull align 4 dereferenceable(16) %4, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2IiiiiEET_T0_T1_T2_(ptr noundef nonnull align 4 dereferenceable(16) %5, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1)
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKNS_3vecILi4EfLS1_0EEES6_S6_S6_(ptr noundef nonnull align 4 dereferenceable(64) %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #6
  call void @_ZN3glm7inverseILi4ELi4EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat.32") align 4 %6, ptr noundef nonnull align 4 dereferenceable(64) %1)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S6_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat.32") align 4 %7, ptr noundef nonnull align 4 dereferenceable(64) %1, ptr noundef nonnull align 4 dereferenceable(64) %6)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store float 1.000000e+00, ptr %9, align 4, !tbaa !5
  call void @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEC2ERKf(ptr noundef nonnull align 4 dereferenceable(64) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %29 = call noundef i32 @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EE6lengthEv()
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.018.lcssa = phi i32 [ 0, %0 ], [ %39, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #6
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 1, i32 noundef 0, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #6
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #6
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2IiiiEET_T0_T1_(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 0, i32 noundef 0, i32 noundef 1)
  call void @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EEC2ERKNS_3vecILi3EfLS1_0EEES6_S6_(ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %16) #6
  call void @_ZN3glm7inverseILi3ELi3EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat.29") align 4 %16, ptr noundef nonnull align 4 dereferenceable(36) %12)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %17) #6
  call void @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi3ELi3ET_XT0_EEERKS4_S6_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat.29") align 4 %17, ptr noundef nonnull align 4 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(36) %16)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %18) #6
  call void @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(36) %18, float noundef 1.000000e+00)
  %31 = call noundef i32 @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EE6lengthEv()
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph26, label %._crit_edge27

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.01722 = phi i32 [ %40, %.lr.ph ], [ 0, %0 ]
  %.01821 = phi i32 [ %39, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %33 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %7, i32 noundef %.01722)
  %34 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %8, i32 noundef %.01722)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %35 = call noundef float @_ZN3glm7epsilonIfEET_v()
  store float %35, ptr %11, align 4, !tbaa !5
  %36 = call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(4) %11)
  store i32 %36, ptr %10, align 4
  %37 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %10)
  %not.20 = xor i1 %37, true
  %38 = zext i1 %not.20 to i32
  %39 = add nuw nsw i32 %.01821, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  %40 = add nuw nsw i32 %.01722, 1
  %41 = call noundef i32 @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EE6lengthEv()
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge27:                                    ; preds = %.lr.ph26, %._crit_edge
  %.1.lcssa = phi i32 [ %.018.lcssa, %._crit_edge ], [ %59, %.lr.ph26 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8) %22, i32 noundef 1, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #6
  call void @_ZN3glm3vecILi2EfLNS_9qualifierE0EEC2IiiEET_T0_(ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef 0, i32 noundef 1)
  call void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2ERKNS_3vecILi2EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  %43 = call { <2 x float>, <2 x float> } @_ZN3glm7inverseILi2ELi2EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr noundef nonnull align 4 dereferenceable(16) %21)
  %44 = extractvalue { <2 x float>, <2 x float> } %43, 0
  store <2 x float> %44, ptr %24, align 8
  %45 = getelementptr inbounds i8, ptr %24, 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 16, ptr nonnull %25) #6
  %47 = call { <2 x float>, <2 x float> } @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi2ELi2ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(16) %24)
  %48 = extractvalue { <2 x float>, <2 x float> } %47, 0
  store <2 x float> %48, ptr %25, align 8
  %49 = getelementptr inbounds i8, ptr %25, i64 8
  %50 = extractvalue { <2 x float>, <2 x float> } %47, 1
  store <2 x float> %50, ptr %49, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #6
  call void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2Ef(ptr noundef nonnull align 4 dereferenceable(16) %26, float noundef 1.000000e+00)
  %51 = call noundef i32 @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EE6lengthEv()
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.lr.ph32, label %._crit_edge33

.lr.ph26:                                         ; preds = %._crit_edge, %.lr.ph26
  %.01624 = phi i32 [ %60, %.lr.ph26 ], [ 0, %._crit_edge ]
  %.123 = phi i32 [ %59, %.lr.ph26 ], [ %.018.lcssa, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %19) #6
  %53 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(36) %17, i32 noundef %.01624)
  %54 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(36) %18, i32 noundef %.01624)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  %55 = call noundef float @_ZN3glm7epsilonIfEET_v()
  store float %55, ptr %20, align 4, !tbaa !5
  %56 = call i24 @_ZN3glm12epsilonEqualILi3EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %54, ptr noundef nonnull align 4 dereferenceable(4) %20)
  store i24 %56, ptr %19, align 4
  %57 = call noundef zeroext i1 @_ZN3glm3allILi3ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(3) %19)
  %not.19 = xor i1 %57, true
  %58 = zext i1 %not.19 to i32
  %59 = add nuw nsw i32 %.123, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %19) #6
  %60 = add nuw nsw i32 %.01624, 1
  %61 = call noundef i32 @_ZN3glm3matILi3ELi3EfLNS_9qualifierE0EE6lengthEv()
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %.lr.ph26, label %._crit_edge27, !llvm.loop !11

._crit_edge33:                                    ; preds = %.lr.ph32, %._crit_edge27
  %.2.lcssa = phi i32 [ %.1.lcssa, %._crit_edge27 ], [ %69, %.lr.ph32 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  ret i32 %.2.lcssa

.lr.ph32:                                         ; preds = %._crit_edge27, %.lr.ph32
  %.030 = phi i32 [ %70, %.lr.ph32 ], [ 0, %._crit_edge27 ]
  %.229 = phi i32 [ %69, %.lr.ph32 ], [ %.1.lcssa, %._crit_edge27 ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %27) #6
  %63 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %25, i32 noundef %.030)
  %64 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %26, i32 noundef %.030)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #6
  %65 = call noundef float @_ZN3glm7epsilonIfEET_v()
  store float %65, ptr %28, align 4, !tbaa !5
  %66 = call i16 @_ZN3glm12epsilonEqualILi2EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(8) %63, ptr noundef nonnull align 4 dereferenceable(8) %64, ptr noundef nonnull align 4 dereferenceable(4) %28)
  store i16 %66, ptr %27, align 2
  %67 = call noundef zeroext i1 @_ZN3glm3allILi2ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(2) %27)
  %not. = xor i1 %67, true
  %68 = zext i1 %not. to i32
  %69 = add nuw nsw i32 %.229, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %27) #6
  %70 = add nuw nsw i32 %.030, 1
  %71 = call noundef i32 @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EE6lengthEv()
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %.lr.ph32, label %._crit_edge33, !llvm.loop !12
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm7inverseILi4ELi4EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat.32") align 4, ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S6_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat.32") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3

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

; 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 #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm7inverseILi3ELi3EfLNS_9qualifierE0EEENS_3matIXT_EXT0_ET1_XT2_EEERKS4_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat.29") align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glmmlIfLNS_9qualifierE0EEENS_3matILi3ELi3ET_XT0_EEERKS4_S6_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat.29") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3glm3matILi2ELi2EfLNS_9qualifierE0EEC2ERKNS_3vecILi2EfLS1_0EEES6_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #4 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 #3

; 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 #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #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"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass