; LLVM IR from Try/Tempest :: Engine/libspirv (libspirv)

; 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.libspirv::Bytecode::OpCode" = type { i16, i16 }
%"class.libspirv::MutableBytecode" = type { %"class.libspirv::Bytecode.base", %"class.std::vector" }
%"class.libspirv::Bytecode.base" = type <{ ptr, i64, i32 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl" = type { %"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<libspirv::Bytecode::OpCode, std::allocator<libspirv::Bytecode::OpCode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.libspirv::Bytecode::Iterator" = type <{ ptr, i32, [4 x i8] }>

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPKN8libspirv8Bytecode6OpCodeEENSt15iterator_traitsIT_E15difference_typeES6_S6_(ptr noundef, ptr noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8libspirv15MutableBytecode12OpTypeStructERNS0_8IteratorEPKjm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, i64 noundef %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i16, align 2
  %11 = alloca %"struct.libspirv::Bytecode::OpCode", align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i64 %3, ptr %8, align 8, !tbaa !9
  %15 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %16 = call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %15)
  store i32 %16, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #5
  %17 = load i64, ptr %8, align 8, !tbaa !9
  %18 = add i64 %17, 2
  %19 = trunc i64 %18 to i16
  store i16 %19, ptr %10, align 2, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %20 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %11, i32 0, i32 0
  store i16 30, ptr %20, align 4, !tbaa !15
  %21 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %11, i32 0, i32 1
  %22 = load i16, ptr %10, align 2, !tbaa !13
  store i16 %22, ptr %21, align 2, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %23 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %15, i32 0, i32 1
  %24 = call noundef ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.libspirv::Bytecode::Iterator", ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  %28 = call noundef i64 @_ZSt8distanceIPKN8libspirv8Bytecode6OpCodeEENSt15iterator_traitsIT_E15difference_typeES6_S6_(ptr noundef %24, ptr noundef %27)
  store i64 %28, ptr %12, align 8, !tbaa !9
  %29 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %15, i32 0, i32 1
  %30 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %15, i32 0, i32 1
  %31 = call noundef i64 @_ZNKSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #5
  %32 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %11, i32 0, i32 1
  %33 = load i16, ptr %32, align 2, !tbaa !17
  %34 = zext i16 %33 to i64
  %35 = add i64 %31, %34
  call void @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %35)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %36 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %15, i32 0, i32 1
  %37 = call noundef i64 @_ZNKSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #5
  %38 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %11, i32 0, i32 1
  %39 = load i16, ptr %38, align 2, !tbaa !17
  %40 = zext i16 %39 to i64
  %41 = sub i64 %37, %40
  store i64 %41, ptr %13, align 8, !tbaa !9
  br label %42

42:                                               ; preds = %47, %4
  %43 = load i64, ptr %13, align 8, !tbaa !9
  %44 = load i64, ptr %12, align 8, !tbaa !9
  %45 = icmp ugt i64 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %60

47:                                               ; preds = %42
  %48 = load i64, ptr %13, align 8, !tbaa !9
  %49 = add i64 %48, -1
  store i64 %49, ptr %13, align 8, !tbaa !9
  %50 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %15, i32 0, i32 1
  %51 = load i64, ptr %13, align 8, !tbaa !9
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %51) #5
  %53 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %15, i32 0, i32 1
  %54 = load i64, ptr %13, align 8, !tbaa !9
  %55 = getelementptr inbounds %"struct.libspirv::Bytecode::OpCode", ptr %11, i32 0, i32 1
  %56 = load i16, ptr %55, align 2, !tbaa !17
  %57 = zext i16 %56 to i64
  %58 = add i64 %54, %57
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %58) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %52, i64 4, i1 false), !tbaa.struct !20
  br label %42, !llvm.loop !21

60:                                               ; preds = %46
  %61 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %15, i32 0, i32 1
  %62 = load i64, ptr %12, align 8, !tbaa !9
  %63 = add i64 %62, 0
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %63) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %11, i64 4, i1 false), !tbaa.struct !20
  %65 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %15, i32 0, i32 1
  %66 = load i64, ptr %12, align 8, !tbaa !9
  %67 = add i64 %66, 1
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %9, i64 4, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %85, %60
  %70 = load i64, ptr %14, align 8, !tbaa !9
  %71 = load i64, ptr %8, align 8, !tbaa !9
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %88

74:                                               ; preds = %69
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = load i64, ptr %14, align 8, !tbaa !9
  %77 = getelementptr inbounds i32, ptr %75, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !11
  %79 = getelementptr inbounds %"class.libspirv::MutableBytecode", ptr %15, i32 0, i32 1
  %80 = load i64, ptr %12, align 8, !tbaa !9
  %81 = load i64, ptr %14, align 8, !tbaa !9
  %82 = add i64 %80, %81
  %83 = add i64 %82, 2
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %83) #5
  store i32 %78, ptr %84, align 4, !tbaa !11
  br label %85

85:                                               ; preds = %74
  %86 = load i64, ptr %14, align 8, !tbaa !9
  %87 = add i64 %86, 1
  store i64 %87, ptr %14, align 8, !tbaa !9
  br label %69, !llvm.loop !23

88:                                               ; preds = %73
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load i64, ptr %12, align 8, !tbaa !9
  %91 = load i16, ptr %10, align 2, !tbaa !13
  %92 = zext i16 %91 to i64
  %93 = add i64 %90, %92
  call void @_ZN8libspirv15MutableBytecode8Iterator18invalidateIteratorEm(ptr noundef nonnull align 8 dereferenceable(24) %89, i64 noundef %93)
  %94 = load i32, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret i32 %94
}

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

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

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"_ZTSN8libspirv8Bytecode6OpCodeE", !14, i64 0, !14, i64 2}
!17 = !{!16, !14, i64 2}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN8libspirv8Bytecode8IteratorE", !6, i64 0, !12, i64 8}
!20 = !{i64 0, i64 2, !13, i64 2, i64 2, !13}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPKN8libspirv8Bytecode6OpCodeEENSt15iterator_traitsIT_E15difference_typeES6_S6_(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8libspirv15MutableBytecode12OpTypeStructERNS0_8IteratorEPKjm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr nocapture noundef readonly %2, i64 noundef %3) local_unnamed_addr #2 align 2 {
  %5 = tail call noundef i32 @_ZN8libspirv15MutableBytecode13fetchAddBoundEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %6 = trunc i64 %3 to i16
  %7 = add i16 %6, 2
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = tail call noundef ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %10 = load ptr, ptr %1, align 8, !tbaa !5
  %11 = tail call noundef i64 @_ZSt8distanceIPKN8libspirv8Bytecode6OpCodeEENSt15iterator_traitsIT_E15difference_typeES6_S6_(ptr noundef %9, ptr noundef %10)
  %12 = tail call noundef i64 @_ZNKSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %13 = zext i16 %7 to i64
  %14 = add i64 %12, %13
  tail call void @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %14)
  %15 = tail call noundef i64 @_ZNKSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %16 = sub i64 %15, %13
  %17 = icmp ugt i64 %16, %11
  br i1 %17, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %4
  %18 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %11) #3
  store i16 30, ptr %18, align 4, !tbaa !11
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %18, i64 2
  store i16 %7, ptr %.sroa.4.0..sroa_idx, align 2, !tbaa !11
  %19 = add i64 %11, 1
  %20 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %19) #3
  store i32 %5, ptr %20, align 4
  %.not = icmp eq i64 %3, 0
  br i1 %.not, label %._crit_edge29, label %.lr.ph28

.lr.ph28:                                         ; preds = %._crit_edge
  %21 = add i64 %11, 2
  br label %29

.lr.ph:                                           ; preds = %4, %.lr.ph
  %.02325 = phi i64 [ %22, %.lr.ph ], [ %16, %4 ]
  %22 = add i64 %.02325, -1
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %22) #3
  %24 = add i64 %22, %13
  %25 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %24) #3
  %26 = load i32, ptr %23, align 4
  store i32 %26, ptr %25, align 4
  %27 = icmp ugt i64 %22, %11
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge29:                                    ; preds = %29, %._crit_edge
  %28 = add i64 %11, %13
  tail call void @_ZN8libspirv15MutableBytecode8Iterator18invalidateIteratorEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %28)
  ret i32 %5

29:                                               ; preds = %.lr.ph28, %29
  %.026 = phi i64 [ 0, %.lr.ph28 ], [ %34, %29 ]
  %30 = getelementptr inbounds i32, ptr %2, i64 %.026
  %31 = load i32, ptr %30, align 4, !tbaa !15
  %32 = add i64 %21, %.026
  %33 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN8libspirv8Bytecode6OpCodeESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %32) #3
  store i32 %31, ptr %33, align 4, !tbaa !15
  %34 = add nuw i64 %.026, 1
  %exitcond.not = icmp eq i64 %34, %3
  br i1 %exitcond.not, label %._crit_edge29, label %29, !llvm.loop !16
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8libspirv15MutableBytecode8Iterator18invalidateIteratorEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

attributes #0 = { 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 #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 = { 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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN8libspirv8Bytecode8IteratorE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass