; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/7zip/Archive/Common (HandlerOut)

; 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.UString = type { ptr, i32, i32 }
%struct.tagPROPVARIANT = type { i16, i16, i16, i16, %union.anon }
%union.anon = type { %struct._LARGE_INTEGER }
%struct._LARGE_INTEGER = type { i64 }
%"class.NArchive::CSingleMethodProps" = type <{ %class.COneMethodInfo, %"class.NArchive::CCommonMethodProps", i32, [4 x i8] }>
%class.COneMethodInfo = type { %class.CMethodProps, %class.AString, %class.UString }
%class.CMethodProps = type { %struct.CProps }
%struct.CProps = type { %class.CObjectVector.0 }
%class.CObjectVector.0 = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }
%class.AString = type { ptr, i32, i32 }
%"class.NArchive::CCommonMethodProps" = type { i32, i32, i64, i64 }

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

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

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

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

declare void @_ZN7UStringC1EPKw(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare noundef i32 @_Z17ParsePropToUInt32RK7UStringRK14tagPROPVARIANTRj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

declare noundef i32 @_ZN14COneMethodInfo26ParseMethodFromPROPVARIANTERK7UStringRK14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8NArchive18CSingleMethodProps4InitEv(ptr noundef nonnull align 8 dereferenceable(76)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive18CSingleMethodProps13SetPropertiesEPKPKwPK14tagPROPVARIANTj(ptr noundef nonnull align 8 dereferenceable(76) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.UString, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %class.UString, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %class.UString, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  %23 = load ptr, ptr %6, align 8
  call void @_ZN8NArchive18CSingleMethodProps4InitEv(ptr noundef nonnull align 8 dereferenceable(76) %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %144, %4
  %25 = load i32, ptr %10, align 4, !tbaa !9
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = icmp ult i32 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  store i32 2, ptr %11, align 4
  br label %149

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds ptr, ptr %30, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  call void @_ZN7UStringC1EPKw(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %34)
  invoke void @_ZN7UString15MakeLower_AsciiEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %35 unwind label %39

35:                                               ; preds = %29
  %36 = invoke noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %37 unwind label %39

37:                                               ; preds = %35
  br i1 %36, label %38, label %43

38:                                               ; preds = %37
  store i32 -2147024809, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %141

39:                                               ; preds = %35, %29
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %13, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %14, align 4
  br label %148

43:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds %struct.tagPROPVARIANT, ptr %44, i64 %46
  store ptr %47, ptr %15, align 8, !tbaa !5
  %48 = invoke noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %49 unwind label %64

49:                                               ; preds = %43
  %50 = getelementptr inbounds i32, ptr %48, i64 0
  %51 = load i32, ptr %50, align 4, !tbaa !11
  %52 = icmp eq i32 %51, 120
  br i1 %52, label %53, label %91

53:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 9, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  %54 = invoke noundef ptr @_ZNK7UString3PtrEj(ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef 1)
          to label %55 unwind label %68

55:                                               ; preds = %53
  invoke void @_ZN7UStringC1EPKw(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %54)
          to label %56 unwind label %68

56:                                               ; preds = %55
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  %58 = invoke noundef i32 @_Z17ParsePropToUInt32RK7UStringRK14tagPROPVARIANTRj(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %59 unwind label %72

59:                                               ; preds = %56
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  store i32 %58, ptr %17, align 4, !tbaa !9
  %60 = load i32, ptr %17, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %77

62:                                               ; preds = %59
  %63 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %63, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %78

64:                                               ; preds = %43
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %13, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %14, align 4
  br label %147

68:                                               ; preds = %55, %53
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %13, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %14, align 4
  br label %76

72:                                               ; preds = %56
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %13, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %14, align 4
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  br label %76

76:                                               ; preds = %72, %68
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %90

77:                                               ; preds = %59
  store i32 0, ptr %11, align 4
  br label %78

78:                                               ; preds = %77, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %79 = load i32, ptr %11, align 4
  switch i32 %79, label %89 [
    i32 0, label %80
  ]

80:                                               ; preds = %78
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = getelementptr inbounds %"class.NArchive::CSingleMethodProps", ptr %23, i32 0, i32 2
  store i32 %81, ptr %82, align 8, !tbaa !13
  %83 = load i32, ptr %16, align 4, !tbaa !9
  invoke void @_ZN12CMethodProps13AddProp_LevelEj(ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef %83)
          to label %84 unwind label %85

84:                                               ; preds = %80
  store i32 4, ptr %11, align 4
  br label %89

85:                                               ; preds = %80
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %13, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %14, align 4
  br label %90

89:                                               ; preds = %84, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %140

90:                                               ; preds = %85, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %147

91:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %92 = getelementptr inbounds i8, ptr %23, i64 48
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = invoke noundef zeroext i1 @_ZN8NArchive18CCommonMethodProps17SetCommonPropertyERK7UStringRK14tagPROPVARIANTRi(ptr noundef nonnull align 8 dereferenceable(24) %92, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %93, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %95 unwind label %102

95:                                               ; preds = %91
  br i1 %94, label %96, label %110

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %97 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %97, ptr %20, align 4, !tbaa !9
  %98 = load i32, ptr %20, align 4, !tbaa !9
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %106

100:                                              ; preds = %96
  %101 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %101, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %107

102:                                              ; preds = %91
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %13, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %147

106:                                              ; preds = %96
  store i32 0, ptr %11, align 4
  br label %107

107:                                              ; preds = %106, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %108 = load i32, ptr %11, align 4
  switch i32 %108, label %111 [
    i32 0, label %109
  ]

109:                                              ; preds = %107
  store i32 4, ptr %11, align 4
  br label %111

110:                                              ; preds = %95
  store i32 0, ptr %11, align 4
  br label %111

111:                                              ; preds = %110, %109, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %112 = load i32, ptr %11, align 4
  switch i32 %112, label %140 [
    i32 0, label %113
  ]

113:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %114, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  invoke void @_ZN7UStringC1EPKw(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef %118)
          to label %119 unwind label %127

119:                                              ; preds = %113
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = invoke noundef i32 @_ZN14COneMethodInfo26ParseMethodFromPROPVARIANTERK7UStringRK14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(48) %23, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %120)
          to label %122 unwind label %131

122:                                              ; preds = %119
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  store i32 %121, ptr %21, align 4, !tbaa !9
  %123 = load i32, ptr %21, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %136

125:                                              ; preds = %122
  %126 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %126, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %137

127:                                              ; preds = %113
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %13, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %14, align 4
  br label %135

131:                                              ; preds = %119
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %13, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %14, align 4
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  br label %135

135:                                              ; preds = %131, %127
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %147

136:                                              ; preds = %122
  store i32 0, ptr %11, align 4
  br label %137

137:                                              ; preds = %136, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  %138 = load i32, ptr %11, align 4
  switch i32 %138, label %140 [
    i32 0, label %139
  ]

139:                                              ; preds = %137
  store i32 0, ptr %11, align 4
  br label %140

140:                                              ; preds = %139, %137, %111, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %141

141:                                              ; preds = %140, %38
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  %142 = load i32, ptr %11, align 4
  switch i32 %142, label %149 [
    i32 0, label %143
    i32 4, label %144
  ]

143:                                              ; preds = %141
  br label %144

144:                                              ; preds = %143, %141
  %145 = load i32, ptr %10, align 4, !tbaa !9
  %146 = add i32 %145, 1
  store i32 %146, ptr %10, align 4, !tbaa !9
  br label %24, !llvm.loop !24

147:                                              ; preds = %135, %102, %90, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %148

148:                                              ; preds = %147, %39
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %154

149:                                              ; preds = %141, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %150 = load i32, ptr %11, align 4
  switch i32 %150, label %159 [
    i32 2, label %151
    i32 1, label %152
  ]

151:                                              ; preds = %149
  store i32 0, ptr %5, align 4
  br label %152

152:                                              ; preds = %151, %149
  %153 = load i32, ptr %5, align 4
  ret i32 %153

154:                                              ; preds = %148
  %155 = load ptr, ptr %13, align 8
  %156 = load i32, ptr %14, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158

159:                                              ; preds = %149
  unreachable
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { "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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"wchar_t", !7, i64 0}
!13 = !{!14, !10, i64 72}
!14 = !{!"_ZTSN8NArchive18CSingleMethodPropsE", !15, i64 0, !22, i64 48, !10, i64 72}
!15 = !{!"_ZTS14COneMethodInfo", !16, i64 0, !20, i64 16, !21, i64 32}
!16 = !{!"_ZTS12CMethodProps", !17, i64 0}
!17 = !{!"_ZTS6CProps", !18, i64 0}
!18 = !{!"_ZTS13CObjectVectorI5CPropE", !19, i64 0}
!19 = !{!"_ZTS13CRecordVectorIPvE", !6, i64 0, !10, i64 8, !10, i64 12}
!20 = !{!"_ZTS7AString", !6, i64 0, !10, i64 8, !10, i64 12}
!21 = !{!"_ZTS7UString", !6, i64 0, !10, i64 8, !10, i64 12}
!22 = !{!"_ZTSN8NArchive18CCommonMethodPropsE", !10, i64 0, !10, i64 4, !23, i64 8, !23, i64 16}
!23 = !{!"long long", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"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.UString = type { ptr, i32, i32 }
%struct.tagPROPVARIANT = type { i16, i16, i16, i16, %union.anon }
%union.anon = type { %struct._LARGE_INTEGER }
%struct._LARGE_INTEGER = type { i64 }

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

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

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

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

declare void @_ZN7UStringC1EPKw(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare noundef i32 @_Z17ParsePropToUInt32RK7UStringRK14tagPROPVARIANTRj(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

declare noundef i32 @_ZN14COneMethodInfo26ParseMethodFromPROPVARIANTERK7UStringRK14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8NArchive18CSingleMethodProps4InitEv(ptr noundef nonnull align 8 dereferenceable(76)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive18CSingleMethodProps13SetPropertiesEPKPKwPK14tagPROPVARIANTj(ptr noundef nonnull align 8 dereferenceable(76) %0, ptr nocapture noundef readonly %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.UString, align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.UString, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.UString, align 8
  tail call void @_ZN8NArchive18CSingleMethodProps4InitEv(ptr noundef nonnull align 8 dereferenceable(76) %0)
  %.not6869.not = icmp eq i32 %3, 0
  br i1 %.not6869.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  %11 = getelementptr inbounds i8, ptr %0, i64 72
  %wide.trip.count = zext i32 %3 to i64
  br label %12

12:                                               ; preds = %.lr.ph, %54
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %54 ]
  %.071 = phi i32 [ undef, %.lr.ph ], [ %.666, %54 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %13 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN7UStringC1EPKw(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %14)
  call void @_ZN7UString15MakeLower_AsciiEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %15 = call noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  br i1 %15, label %.thread, label %16

16:                                               ; preds = %12
  %17 = getelementptr inbounds %struct.tagPROPVARIANT, ptr %2, i64 %indvars.iv
  %18 = call noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = icmp eq i32 %19, 120
  br i1 %20, label %21, label %37

21:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store i32 9, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  %22 = call noundef ptr @_ZNK7UString3PtrEj(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 1)
  invoke void @_ZN7UStringC1EPKw(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %22)
          to label %23 unwind label %26

23:                                               ; preds = %21
  %24 = invoke noundef i32 @_Z17ParsePropToUInt32RK7UStringRK14tagPROPVARIANTRj(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %25 unwind label %28

25:                                               ; preds = %23
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  %.not55 = icmp eq i32 %24, 0
  %.0. = select i1 %.not55, i32 %.071, i32 %24
  br i1 %.not55, label %31, label %35

26:                                               ; preds = %21
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %23
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  br label %30

30:                                               ; preds = %28, %26
  %.pn53 = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br label %36

31:                                               ; preds = %25
  %32 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %32, ptr %11, align 8, !tbaa !13
  invoke void @_ZN12CMethodProps13AddProp_LevelEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %32)
          to label %35 unwind label %33

33:                                               ; preds = %31
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %36

35:                                               ; preds = %31, %25
  %.133 = phi i32 [ 1, %25 ], [ 4, %31 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %53

36:                                               ; preds = %33, %30
  %.pn56 = phi { ptr, i32 } [ %34, %33 ], [ %.pn53, %30 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %55

37:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %38 = invoke noundef zeroext i1 @_ZN8NArchive18CCommonMethodProps17SetCommonPropertyERK7UStringRK14tagPROPVARIANTRi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %39 unwind label %41

39:                                               ; preds = %37
  %40 = load i32, ptr %8, align 4
  %.not = icmp eq i32 %40, 0
  %. = select i1 %.not, i32 4, i32 1
  %.0.59 = select i1 %.not, i32 %.071, i32 %40
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br i1 %38, label %53, label %43

41:                                               ; preds = %37
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %55

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN7UStringC1EPKw(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %44)
          to label %45 unwind label %48

45:                                               ; preds = %43
  %46 = invoke noundef i32 @_ZN14COneMethodInfo26ParseMethodFromPROPVARIANTERK7UStringRK14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %47 unwind label %50

47:                                               ; preds = %45
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  %.not52 = icmp eq i32 %46, 0
  br i1 %.not52, label %.thread63, label %.thread

48:                                               ; preds = %43
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %45
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  br label %52

52:                                               ; preds = %50, %48
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  br label %55

.thread63:                                        ; preds = %47
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %54

.thread:                                          ; preds = %12, %47
  %.6.ph = phi i32 [ %46, %47 ], [ -2147024809, %12 ]
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %.loopexit

53:                                               ; preds = %35, %39
  %.638 = phi i32 [ %.133, %35 ], [ %., %39 ]
  %.6 = phi i32 [ %.0., %35 ], [ %.0.59, %39 ]
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %cond67 = icmp eq i32 %.638, 4
  br i1 %cond67, label %54, label %.loopexit

54:                                               ; preds = %53, %.thread63
  %.666 = phi i32 [ %.071, %.thread63 ], [ %.6, %53 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %12, !llvm.loop !24

55:                                               ; preds = %52, %41, %36
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %36 ], [ %.pn, %52 ], [ %42, %41 ]
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn56.pn

.loopexit:                                        ; preds = %54, %53, %4, %.thread
  %spec.select = phi i32 [ %.6.ph, %.thread ], [ 0, %4 ], [ 0, %54 ], [ %.6, %53 ]
  ret i32 %spec.select
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { "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 = { 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 = !{!"wchar_t", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 72}
!14 = !{!"_ZTSN8NArchive18CSingleMethodPropsE", !15, i64 0, !22, i64 48, !12, i64 72}
!15 = !{!"_ZTS14COneMethodInfo", !16, i64 0, !20, i64 16, !21, i64 32}
!16 = !{!"_ZTS12CMethodProps", !17, i64 0}
!17 = !{!"_ZTS6CProps", !18, i64 0}
!18 = !{!"_ZTS13CObjectVectorI5CPropE", !19, i64 0}
!19 = !{!"_ZTS13CRecordVectorIPvE", !6, i64 0, !12, i64 8, !12, i64 12}
!20 = !{!"_ZTS7AString", !6, i64 0, !12, i64 8, !12, i64 12}
!21 = !{!"_ZTS7UString", !6, i64 0, !12, i64 8, !12, i64 12}
!22 = !{!"_ZTSN8NArchive18CCommonMethodPropsE", !12, i64 0, !12, i64 4, !23, i64 8, !23, i64 16}
!23 = !{!"long long", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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