; LLVM IR from Dovyski/opengl-demos :: libs/glm-0.9.9.3/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.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = 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.23" = type { %union.anon.24 }
%union.anon.24 = type { %struct.anon.25 }
%struct.anon.25 = type { i32, i32, i32, i32 }
%"struct.glm::vec.13" = type { %union.anon.14 }
%union.anon.14 = type { %struct.anon.15 }
%struct.anon.15 = type { i8, i8, 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

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.18", align 8
  %3 = alloca %"struct.glm::vec.23", align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.glm::vec.23", align 4
  %7 = alloca %"struct.glm::vec.23", align 4
  %8 = alloca %"struct.glm::vec.23", align 4
  %9 = alloca %"struct.glm::vec.23", align 4
  %10 = alloca %"struct.glm::vec.23", align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.glm::vec.23", align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.glm::vec.23", align 4
  %16 = alloca %"struct.glm::vec.13", 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 = %93, %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 %120

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 %122

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 %122

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 %122

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 %122

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 %122

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 %122

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 %96

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 %100

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

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

76:                                               ; preds = %73
  %77 = getelementptr inbounds %"struct.glm::vec.23", ptr %15, i32 0, i32 0
  %78 = getelementptr inbounds %union.anon.24, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds { i64, i64 }, ptr %78, i32 0, i32 0
  %80 = extractvalue { i64, i64 } %75, 0
  store i64 %80, ptr %79, align 4
  %81 = getelementptr inbounds { i64, i64 }, ptr %78, i32 0, i32 1
  %82 = extractvalue { i64, i64 } %75, 1
  store i64 %82, ptr %81, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %83 = 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 %84 unwind label %112

84:                                               ; preds = %76
  %85 = getelementptr inbounds %"struct.glm::vec.13", ptr %16, i32 0, i32 0
  %86 = getelementptr inbounds %union.anon.14, ptr %85, i32 0, i32 0
  store i32 %83, ptr %86, align 1
  %87 = invoke noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %16)
          to label %88 unwind label %112

88:                                               ; preds = %84
  %89 = zext i1 %87 to i64
  %90 = select i1 %87, i32 0, i32 1
  %91 = load i32, ptr %1, align 4, !tbaa !5
  %92 = add nsw i32 %91, %90
  store i32 %92, 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 %93

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

96:                                               ; preds = %58
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %4, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %5, align 4
  br label %119

100:                                              ; preds = %62
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %4, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %5, align 4
  br label %118

104:                                              ; preds = %65
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %4, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %5, align 4
  br label %117

108:                                              ; preds = %73
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %4, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %5, align 4
  br label %116

112:                                              ; preds = %84, %76
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %4, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %116

116:                                              ; preds = %112, %108
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %117

117:                                              ; preds = %116, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %118

118:                                              ; preds = %117, %100
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %119

119:                                              ; preds = %118, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %122

120:                                              ; preds = %33
  %121 = 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 %121

122:                                              ; preds = %119, %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 %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %4, align 8
  %125 = load i32, ptr %5, align 4
  %126 = insertvalue { ptr, i32 } poison, ptr %124, 0
  %127 = insertvalue { ptr, i32 } %126, i32 %125, 1
  resume { ptr, i32 } %127
}

; 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.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = 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.23" = type { %union.anon.24 }
%union.anon.24 = type { %struct.anon.25 }
%struct.anon.25 = type { i32, i32, i32, i32 }
%"struct.glm::vec.13" = type { %union.anon.14 }
%union.anon.14 = type { %struct.anon.15 }
%struct.anon.15 = type { i8, i8, 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

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.18", align 8
  %2 = alloca %"struct.glm::vec.23", align 4
  %3 = alloca %"struct.glm::vec.23", align 4
  %4 = alloca %"struct.glm::vec.23", align 4
  %5 = alloca %"struct.glm::vec.23", align 4
  %6 = alloca %"struct.glm::vec.23", align 4
  %7 = alloca %"struct.glm::vec.23", align 4
  %8 = alloca %"struct.glm::vec.23", align 8
  %9 = alloca %"struct.glm::vec.23", align 8
  %10 = alloca %"struct.glm::vec.13", 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