; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/Common (Wildcard)

; 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.NWildcard::CItem" = type <{ %class.CObjectVector, i8, i8, i8, i8, [4 x i8] }>
%class.CObjectVector = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z16CompareFileNamesPKwS0_(ptr noundef, ptr noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z21DoesWildcardMatchNameRK7UStringS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK9NWildcard5CItem9CheckPathERK13CObjectVectorI7UStringEb(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i1 noundef zeroext %2) #2 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %14 = zext i1 %2 to i8
  store i8 %14, ptr %7, align 1, !tbaa !9
  %15 = load ptr, ptr %5, align 8
  %16 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %17 = trunc i8 %16 to i1
  br i1 %17, label %23, label %18

18:                                               ; preds = %3
  %19 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 3
  %20 = load i8, ptr %19, align 2, !tbaa !13, !range !11, !noundef !12
  %21 = trunc i8 %20 to i1
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  store i1 false, ptr %4, align 1
  br label %142

23:                                               ; preds = %18, %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  %26 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 0
  %27 = call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %28 = sub nsw i32 %25, %27
  store i32 %28, ptr %8, align 4, !tbaa !18
  %29 = load i32, ptr %8, align 4, !tbaa !18
  %30 = icmp slt i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %23
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %141

32:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !18
  %33 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %60

35:                                               ; preds = %32
  %36 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 3
  %37 = load i8, ptr %36, align 2, !tbaa !13, !range !11, !noundef !12
  %38 = trunc i8 %37 to i1
  br i1 %38, label %51, label %39

39:                                               ; preds = %35
  %40 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 1
  %41 = load i8, ptr %40, align 8, !tbaa !19, !range !11, !noundef !12
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %45

43:                                               ; preds = %39
  %44 = load i32, ptr %8, align 4, !tbaa !18
  store i32 %44, ptr %10, align 4, !tbaa !18
  br label %50

45:                                               ; preds = %39
  %46 = load i32, ptr %8, align 4, !tbaa !18
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %140

49:                                               ; preds = %45
  br label %50

50:                                               ; preds = %49, %43
  br label %51

51:                                               ; preds = %50, %35
  %52 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 2
  %53 = load i8, ptr %52, align 1, !tbaa !20, !range !11, !noundef !12
  %54 = trunc i8 %53 to i1
  br i1 %54, label %59, label %55

55:                                               ; preds = %51
  %56 = load i32, ptr %8, align 4, !tbaa !18
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %140

59:                                               ; preds = %55, %51
  br label %60

60:                                               ; preds = %59, %32
  %61 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 1
  %62 = load i8, ptr %61, align 8, !tbaa !19, !range !11, !noundef !12
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %76

64:                                               ; preds = %60
  %65 = load i32, ptr %8, align 4, !tbaa !18
  store i32 %65, ptr %11, align 4, !tbaa !18
  %66 = load i8, ptr %7, align 1, !tbaa !9, !range !11, !noundef !12
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %75

68:                                               ; preds = %64
  %69 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 2
  %70 = load i8, ptr %69, align 1, !tbaa !20, !range !11, !noundef !12
  %71 = trunc i8 %70 to i1
  br i1 %71, label %75, label %72

72:                                               ; preds = %68
  %73 = load i32, ptr %8, align 4, !tbaa !18
  %74 = sub nsw i32 %73, 1
  store i32 %74, ptr %11, align 4, !tbaa !18
  br label %75

75:                                               ; preds = %72, %68, %64
  br label %76

76:                                               ; preds = %75, %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %77 = load i32, ptr %10, align 4, !tbaa !18
  store i32 %77, ptr %12, align 4, !tbaa !18
  br label %78

78:                                               ; preds = %134, %76
  %79 = load i32, ptr %12, align 4, !tbaa !18
  %80 = load i32, ptr %11, align 4, !tbaa !18
  %81 = icmp sle i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 2, ptr %9, align 4
  br label %137

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !18
  br label %84

84:                                               ; preds = %121, %83
  %85 = load i32, ptr %13, align 4, !tbaa !18
  %86 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 0
  %87 = call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %86)
  %88 = icmp ult i32 %85, %87
  br i1 %88, label %89, label %124

89:                                               ; preds = %84
  %90 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 4
  %91 = load i8, ptr %90, align 1, !tbaa !21, !range !11, !noundef !12
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %105

93:                                               ; preds = %89
  %94 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 0
  %95 = load i32, ptr %13, align 4, !tbaa !18
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %94, i32 noundef %95)
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load i32, ptr %13, align 4, !tbaa !18
  %99 = load i32, ptr %12, align 4, !tbaa !18
  %100 = add i32 %98, %99
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %97, i32 noundef %100)
  %102 = call noundef zeroext i1 @_Z21DoesWildcardMatchNameRK7UStringS1_(ptr noundef nonnull align 8 dereferenceable(16) %96, ptr noundef nonnull align 8 dereferenceable(16) %101)
  br i1 %102, label %104, label %103

103:                                              ; preds = %93
  br label %124

104:                                              ; preds = %93
  br label %120

105:                                              ; preds = %89
  %106 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 0
  %107 = load i32, ptr %13, align 4, !tbaa !18
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %106, i32 noundef %107)
  %109 = call noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %108)
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load i32, ptr %13, align 4, !tbaa !18
  %112 = load i32, ptr %12, align 4, !tbaa !18
  %113 = add i32 %111, %112
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %110, i32 noundef %113)
  %115 = call noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %114)
  %116 = call noundef i32 @_Z16CompareFileNamesPKwS0_(ptr noundef %109, ptr noundef %115) #3
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %105
  br label %124

119:                                              ; preds = %105
  br label %120

120:                                              ; preds = %119, %104
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %13, align 4, !tbaa !18
  %123 = add i32 %122, 1
  store i32 %123, ptr %13, align 4, !tbaa !18
  br label %84, !llvm.loop !22

124:                                              ; preds = %118, %103, %84
  %125 = load i32, ptr %13, align 4, !tbaa !18
  %126 = getelementptr inbounds %"struct.NWildcard::CItem", ptr %15, i32 0, i32 0
  %127 = call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %126)
  %128 = icmp eq i32 %125, %127
  br i1 %128, label %129, label %130

129:                                              ; preds = %124
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %131

130:                                              ; preds = %124
  store i32 0, ptr %9, align 4
  br label %131

131:                                              ; preds = %130, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  %132 = load i32, ptr %9, align 4
  switch i32 %132, label %137 [
    i32 0, label %133
  ]

133:                                              ; preds = %131
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %12, align 4, !tbaa !18
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %12, align 4, !tbaa !18
  br label %78, !llvm.loop !24

137:                                              ; preds = %131, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  %138 = load i32, ptr %9, align 4
  switch i32 %138, label %140 [
    i32 2, label %139
  ]

139:                                              ; preds = %137
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %140

140:                                              ; preds = %139, %137, %58, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %141

141:                                              ; preds = %140, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %142

142:                                              ; preds = %141, %22
  %143 = load i1, ptr %4, align 1
  ret i1 %143
}

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !10, i64 18}
!14 = !{!"_ZTSN9NWildcard5CItemE", !15, i64 0, !10, i64 16, !10, i64 17, !10, i64 18, !10, i64 19}
!15 = !{!"_ZTS13CObjectVectorI7UStringE", !16, i64 0}
!16 = !{!"_ZTS13CRecordVectorIPvE", !6, i64 0, !17, i64 8, !17, i64 12}
!17 = !{!"int", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!14, !10, i64 16}
!20 = !{!14, !10, i64 17}
!21 = !{!14, !10, i64 19}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


; 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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z16CompareFileNamesPKwS0_(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z21DoesWildcardMatchNameRK7UStringS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK9NWildcard5CItem9CheckPathERK13CObjectVectorI7UStringEb(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i1 noundef zeroext %2) local_unnamed_addr #1 align 2 {
  br i1 %2, label %8, label %4

4:                                                ; preds = %3
  %5 = getelementptr inbounds i8, ptr %0, i64 18
  %6 = load i8, ptr %5, align 2, !tbaa !5, !range !14, !noundef !15
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %8, label %.loopexit

8:                                                ; preds = %4, %3
  %9 = tail call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %10 = tail call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %11 = sub nsw i32 %9, %10
  %12 = icmp slt i32 %11, 0
  br i1 %12, label %.loopexit, label %13

13:                                               ; preds = %8
  br i1 %2, label %14, label %._crit_edge56

._crit_edge56:                                    ; preds = %13
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 17
  %.pre = load i8, ptr %.phi.trans.insert, align 1, !range !14
  br label %28

14:                                               ; preds = %13
  %15 = getelementptr inbounds i8, ptr %0, i64 18
  %16 = load i8, ptr %15, align 2, !tbaa !5, !range !14, !noundef !15
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %23, label %18

18:                                               ; preds = %14
  %19 = getelementptr inbounds i8, ptr %0, i64 16
  %20 = load i8, ptr %19, align 8, !tbaa !16, !range !14, !noundef !15
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  %.not38 = icmp eq i32 %11, 0
  br i1 %.not38, label %23, label %.loopexit

23:                                               ; preds = %18, %22, %14
  %.032 = phi i32 [ 0, %14 ], [ 0, %22 ], [ %11, %18 ]
  %24 = getelementptr inbounds i8, ptr %0, i64 17
  %25 = load i8, ptr %24, align 1, !range !14, !noundef !15
  %26 = trunc nuw i8 %25 to i1
  %27 = icmp ne i32 %11, 0
  %or.cond.not = or i1 %27, %26
  br i1 %or.cond.not, label %28, label %.loopexit

28:                                               ; preds = %._crit_edge56, %23
  %29 = phi i8 [ %25, %23 ], [ %.pre, %._crit_edge56 ]
  %.1 = phi i32 [ %.032, %23 ], [ 0, %._crit_edge56 ]
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  %31 = load i8, ptr %30, align 8, !tbaa !16, !range !14, !noundef !15
  %32 = trunc nuw i8 %31 to i1
  %33 = xor i8 %29, 1
  %34 = zext nneg i8 %33 to i32
  %spec.select = select i1 %2, i32 %34, i32 0
  %.mux = sub nsw i32 %11, %spec.select
  %.031 = select i1 %32, i32 %.mux, i32 0
  %.not50.not = icmp sgt i32 %.1, %.031
  br i1 %.not50.not, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %28
  %35 = getelementptr inbounds i8, ptr %0, i64 19
  br label %.preheader

.preheader:                                       ; preds = %._crit_edge, %.preheader.lr.ph
  %.03051 = phi i32 [ %.1, %.preheader.lr.ph ], [ %55, %._crit_edge ]
  %36 = tail call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %.not55 = icmp eq i32 %36, 0
  br i1 %.not55, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %50
  %.045 = phi i32 [ %51, %50 ], [ 0, %.preheader ]
  %37 = load i8, ptr %35, align 1, !tbaa !17, !range !14, !noundef !15
  %38 = trunc nuw i8 %37 to i1
  %39 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %.045)
  br i1 %38, label %40, label %44

40:                                               ; preds = %.lr.ph
  %41 = add i32 %.045, %.03051
  %42 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %41)
  %43 = tail call noundef zeroext i1 @_Z21DoesWildcardMatchNameRK7UStringS1_(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %42)
  br i1 %43, label %50, label %._crit_edge

44:                                               ; preds = %.lr.ph
  %45 = tail call noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %39)
  %46 = add i32 %.045, %.03051
  %47 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %46)
  %48 = tail call noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %47)
  %49 = tail call noundef i32 @_Z16CompareFileNamesPKwS0_(ptr noundef %45, ptr noundef %48) #2
  %.not40 = icmp eq i32 %49, 0
  br i1 %.not40, label %50, label %._crit_edge

50:                                               ; preds = %40, %44
  %51 = add nuw i32 %.045, 1
  %52 = tail call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %53 = icmp ult i32 %51, %52
  br i1 %53, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %50, %40, %44, %.preheader
  %.0.lcssa = phi i32 [ 0, %.preheader ], [ %.045, %44 ], [ %.045, %40 ], [ %51, %50 ]
  %54 = tail call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  %.not41 = icmp eq i32 %.0.lcssa, %54
  %55 = add i32 %.03051, 1
  %exitcond.not = icmp eq i32 %.03051, %.031
  %or.cond = select i1 %.not41, i1 true, i1 %exitcond.not
  br i1 %or.cond, label %.loopexit, label %.preheader, !llvm.loop !20

.loopexit:                                        ; preds = %._crit_edge, %28, %8, %23, %22, %4
  %.5 = phi i1 [ false, %4 ], [ false, %8 ], [ false, %22 ], [ false, %23 ], [ false, %28 ], [ %.not41, %._crit_edge ]
  ret i1 %.5
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

attributes #0 = { 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 #1 = { 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 = { 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, !13, i64 18}
!6 = !{!"_ZTSN9NWildcard5CItemE", !7, i64 0, !13, i64 16, !13, i64 17, !13, i64 18, !13, i64 19}
!7 = !{!"_ZTS13CObjectVectorI7UStringE", !8, i64 0}
!8 = !{!"_ZTS13CRecordVectorIPvE", !9, i64 0, !12, i64 8, !12, i64 12}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"bool", !10, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!6, !13, i64 16}
!17 = !{!6, !13, i64 19}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; Effective O3 passes: BDCEPass,ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass