; LLVM IR from jpvt/Computer_Graphics :: Assignment #3/third_party/glm/test/gtc/gtc_packing.ll (Z14test_I3x10_1x2v)

; 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"

%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<glm::vec<4, int>, std::allocator<glm::vec<4, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::vec<4, int>, std::allocator<glm::vec<4, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::vec<4, int>, std::allocator<glm::vec<4, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::vec<4, int>, std::allocator<glm::vec<4, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::vec.24" = type { %union.anon.25, %union.anon.26, %union.anon.27, %union.anon.28 }
%union.anon.25 = type { i32 }
%union.anon.26 = type { i32 }
%union.anon.27 = type { i32 }
%union.anon.28 = type { i32 }
%"struct.glm::vec.14" = type { %union.anon.15, %union.anon.16, %union.anon.17, %union.anon.18 }
%union.anon.15 = type { i8 }
%union.anon.16 = type { i8 }
%union.anon.17 = type { i8 }
%union.anon.18 = type { 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z14test_I3x10_1x2v() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector.19", align 8
  %3 = alloca %"struct.glm::vec.24", align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.glm::vec.24", align 4
  %7 = alloca %"struct.glm::vec.24", align 4
  %8 = alloca %"struct.glm::vec.24", align 4
  %9 = alloca %"struct.glm::vec.24", align 4
  %10 = alloca %"struct.glm::vec.24", align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.glm::vec.24", align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.glm::vec.24", align 4
  %16 = alloca %"struct.glm::vec.14", align 1
  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 24, ptr %2) #5
  call void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #5
  invoke void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 0)
          to label %17 unwind label %34

17:                                               ; preds = %0
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(16) %3)
          to label %18 unwind label %34

18:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  invoke void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef 1)
          to label %19 unwind label %38

19:                                               ; preds = %18
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(16) %6)
          to label %20 unwind label %38

20:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  invoke void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %7, i32 noundef -1)
          to label %21 unwind label %42

21:                                               ; preds = %20
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %22 unwind label %42

22:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  invoke void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 2)
          to label %23 unwind label %46

23:                                               ; preds = %22
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(16) %8)
          to label %24 unwind label %46

24:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  invoke void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef -2)
          to label %25 unwind label %50

25:                                               ; preds = %24
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(16) %9)
          to label %26 unwind label %50

26:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  invoke void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 3)
          to label %27 unwind label %54

27:                                               ; preds = %26
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(16) %10)
          to label %28 unwind label %54

28:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %87, %28
  %30 = load i64, ptr %11, align 8, !tbaa !9
  %31 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %58, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %114

34:                                               ; preds = %17, %0
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %4, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  br label %116

38:                                               ; preds = %19, %18
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %4, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %116

42:                                               ; preds = %21, %20
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %4, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  br label %116

46:                                               ; preds = %23, %22
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %4, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %116

50:                                               ; preds = %25, %24
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %4, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br label %116

54:                                               ; preds = %27, %26
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %4, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %116

58:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %59 = load i64, ptr %11, align 8, !tbaa !9
  %60 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %59) #5
  %61 = invoke noundef i32 @_ZN3glm13packI3x10_1x2ERKNS_3vecILi4EiLNS_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(16) %60)
          to label %62 unwind label %90

62:                                               ; preds = %58
  store i32 %61, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = invoke { i64, i64 } @_ZN3glm15unpackI3x10_1x2Ej(i32 noundef %63)
          to label %65 unwind label %94

65:                                               ; preds = %62
  %66 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 0
  %67 = extractvalue { i64, i64 } %64, 0
  store i64 %67, ptr %66, align 4
  %68 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 1
  %69 = extractvalue { i64, i64 } %64, 1
  store i64 %69, ptr %68, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %70 = invoke noundef i32 @_ZN3glm13packI3x10_1x2ERKNS_3vecILi4EiLNS_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(16) %13)
          to label %71 unwind label %98

71:                                               ; preds = %65
  store i32 %70, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %72 = load i32, ptr %14, align 4, !tbaa !5
  %73 = invoke { i64, i64 } @_ZN3glm15unpackI3x10_1x2Ej(i32 noundef %72)
          to label %74 unwind label %102

74:                                               ; preds = %71
  %75 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %76 = extractvalue { i64, i64 } %73, 0
  store i64 %76, ptr %75, align 4
  %77 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %78 = extractvalue { i64, i64 } %73, 1
  store i64 %78, ptr %77, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %79 = invoke i32 @_ZN3glm5equalILi4EiLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %80 unwind label %106

80:                                               ; preds = %74
  store i32 %79, ptr %16, align 1
  %81 = invoke noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %16)
          to label %82 unwind label %106

82:                                               ; preds = %80
  %83 = zext i1 %81 to i64
  %84 = select i1 %81, i32 0, i32 1
  %85 = load i32, ptr %1, align 4, !tbaa !5
  %86 = add nsw i32 %85, %84
  store i32 %86, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %87

87:                                               ; preds = %82
  %88 = load i64, ptr %11, align 8, !tbaa !9
  %89 = add i64 %88, 1
  store i64 %89, ptr %11, align 8, !tbaa !9
  br label %29, !llvm.loop !11

90:                                               ; preds = %58
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %4, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %5, align 4
  br label %113

94:                                               ; preds = %62
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %4, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %5, align 4
  br label %112

98:                                               ; preds = %65
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %4, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %5, align 4
  br label %111

102:                                              ; preds = %71
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %4, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %5, align 4
  br label %110

106:                                              ; preds = %80, %74
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %4, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %110

110:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %111

111:                                              ; preds = %110, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %112

112:                                              ; preds = %111, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %113

113:                                              ; preds = %112, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %116

114:                                              ; preds = %33
  %115 = load i32, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 %115

116:                                              ; preds = %113, %54, %50, %46, %42, %38, %34
  call void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  br label %117

117:                                              ; preds = %116
  %118 = load ptr, ptr %4, align 8
  %119 = load i32, ptr %5, align 4
  %120 = insertvalue { ptr, i32 } poison, ptr %118, 0
  %121 = insertvalue { ptr, i32 } %120, i32 %119, 1
  resume { ptr, i32 } %121
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i64 } @_ZN3glm15unpackI3x10_1x2Ej(i32 noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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


; 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"

%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<glm::vec<4, int>, std::allocator<glm::vec<4, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::vec<4, int>, std::allocator<glm::vec<4, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::vec<4, int>, std::allocator<glm::vec<4, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::vec<4, int>, std::allocator<glm::vec<4, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.glm::vec.24" = type { %union.anon.25, %union.anon.26, %union.anon.27, %union.anon.28 }
%union.anon.25 = type { i32 }
%union.anon.26 = type { i32 }
%union.anon.27 = type { i32 }
%union.anon.28 = type { i32 }
%"struct.glm::vec.14" = type { %union.anon.15, %union.anon.16, %union.anon.17, %union.anon.18 }
%union.anon.15 = type { i8 }
%union.anon.16 = type { i8 }
%union.anon.17 = type { i8 }
%union.anon.18 = type { 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z14test_I3x10_1x2v() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector.19", align 8
  %2 = alloca %"struct.glm::vec.24", align 4
  %3 = alloca %"struct.glm::vec.24", align 4
  %4 = alloca %"struct.glm::vec.24", align 4
  %5 = alloca %"struct.glm::vec.24", align 4
  %6 = alloca %"struct.glm::vec.24", align 4
  %7 = alloca %"struct.glm::vec.24", align 4
  %8 = alloca %"struct.glm::vec.24", align 8
  %9 = alloca %"struct.glm::vec.24", align 8
  %10 = alloca %"struct.glm::vec.14", align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #5
  call void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef 0)
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(16) %2)
          to label %11 unwind label %20

11:                                               ; preds = %0
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 1)
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(16) %3)
          to label %12 unwind label %22

12:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %4, i32 noundef -1)
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(16) %4)
          to label %13 unwind label %24

13:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %5, i32 noundef 2)
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(16) %5)
          to label %14 unwind label %26

14:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef -2)
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(16) %6)
          to label %15 unwind label %28

15:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN3glm3vecILi4EiLNS_9qualifierE0EEC2Ei(ptr noundef nonnull align 4 dereferenceable(16) %7, i32 noundef 3)
  invoke void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(16) %7)
          to label %16 unwind label %30

16:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  %17 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %16
  %18 = getelementptr inbounds i8, ptr %8, i64 8
  %19 = getelementptr inbounds i8, ptr %9, i64 8
  br label %32

._crit_edge:                                      ; preds = %47, %16
  %.0.lcssa = phi i32 [ 0, %16 ], [ %49, %47 ]
  call void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  ret i32 %.0.lcssa

20:                                               ; preds = %0
  %21 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  br label %61

22:                                               ; preds = %11
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  br label %61

24:                                               ; preds = %12
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %61

26:                                               ; preds = %13
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %61

28:                                               ; preds = %14
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %61

30:                                               ; preds = %15
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %61

32:                                               ; preds = %.lr.ph, %47
  %.020 = phi i32 [ 0, %.lr.ph ], [ %49, %47 ]
  %.0919 = phi i64 [ 0, %.lr.ph ], [ %50, %47 ]
  %33 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.0919) #5
  %34 = call noundef i32 @_ZN3glm13packI3x10_1x2ERKNS_3vecILi4EiLNS_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(16) %33)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  %35 = invoke { i64, i64 } @_ZN3glm15unpackI3x10_1x2Ej(i32 noundef %34)
          to label %36 unwind label %53

36:                                               ; preds = %32
  %37 = extractvalue { i64, i64 } %35, 0
  store i64 %37, ptr %8, align 8
  %38 = extractvalue { i64, i64 } %35, 1
  store i64 %38, ptr %18, align 8
  %39 = call noundef i32 @_ZN3glm13packI3x10_1x2ERKNS_3vecILi4EiLNS_9qualifierE0EEE(ptr noundef nonnull align 4 dereferenceable(16) %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %40 = invoke { i64, i64 } @_ZN3glm15unpackI3x10_1x2Ej(i32 noundef %39)
          to label %41 unwind label %55

41:                                               ; preds = %36
  %42 = extractvalue { i64, i64 } %40, 0
  store i64 %42, ptr %9, align 8
  %43 = extractvalue { i64, i64 } %40, 1
  store i64 %43, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %44 = invoke i32 @_ZN3glm5equalILi4EiLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %9)
          to label %45 unwind label %57

45:                                               ; preds = %41
  store i32 %44, ptr %10, align 4
  %46 = invoke noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %10)
          to label %47 unwind label %57

47:                                               ; preds = %45
  %not. = xor i1 %46, true
  %48 = zext i1 %not. to i32
  %49 = add nuw nsw i32 %.020, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  %50 = add nuw i64 %.0919, 1
  %51 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %52 = icmp ult i64 %50, %51
  br i1 %52, label %32, label %._crit_edge, !llvm.loop !5

53:                                               ; preds = %32
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %60

55:                                               ; preds = %36
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %59

57:                                               ; preds = %45, %41
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %59

59:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  br label %60

60:                                               ; preds = %59, %53
  %.pn.pn = phi { ptr, i32 } [ %.pn, %59 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %61

61:                                               ; preds = %60, %30, %28, %26, %24, %22, %20
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %60 ], [ %31, %30 ], [ %29, %28 ], [ %27, %26 ], [ %25, %24 ], [ %23, %22 ], [ %21, %20 ]
  call void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i64 } @_ZN3glm15unpackI3x10_1x2Ej(i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN3glm3vecILi4EiLNS0_9qualifierE0EEESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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


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