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

; 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.CNameToPropID = type { i16, ptr }
%class.UString = type { ptr, i32, i32 }
%struct.CProp = type { i32, i8, %"class.NWindows::NCOM::CPropVariant" }
%"class.NWindows::NCOM::CPropVariant" = type { %struct.tagPROPVARIANT }
%struct.tagPROPVARIANT = type { i16, i16, i16, i16, %union.anon }
%union.anon = type { %struct._LARGE_INTEGER }
%struct._LARGE_INTEGER = type { i64 }
%struct.CProps = type { %class.CObjectVector }
%class.CObjectVector = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }

@_ZL14g_NameToPropID = external hidden constant [22 x %struct.CNameToPropID], align 16

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK7UString3LenEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL15FindPropIdExactRK7UString(ptr noundef nonnull align 8 dereferenceable(16)) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL13IsLogSizePropj(i32 noundef) #1

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

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

declare void @_ZN7UStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10SplitParamRK7UStringRS_S2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CMethodProps26ParseParamsFromPROPVARIANTERK7UStringRK14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %class.UString, align 8
  %9 = alloca %class.UString, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %struct.CProp, align 8
  %16 = alloca i32, align 4
  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
  %17 = load ptr, ptr %5, align 8
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = call noundef i32 @_ZNK7UString3LenEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %3
  store i32 -2147024809, ptr %4, align 4
  br label %97

22:                                               ; preds = %3
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.tagPROPVARIANT, ptr %23, i32 0, i32 0
  %25 = load i16, ptr %24, align 8, !tbaa !9
  %26 = zext i16 %25 to i32
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %43

28:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @_ZN7UStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  invoke void @_ZN7UStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %29 unwind label %34

29:                                               ; preds = %28
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZL10SplitParamRK7UStringRS_S2_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %31 unwind label %38

31:                                               ; preds = %29
  %32 = invoke noundef i32 @_ZN12CMethodProps8SetParamERK7UStringS2_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %33 unwind label %38

33:                                               ; preds = %31
  store i32 %32, ptr %4, align 4
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %97

34:                                               ; preds = %28
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %10, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %11, align 4
  br label %42

38:                                               ; preds = %31, %29
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %10, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %11, align 4
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  br label %42

42:                                               ; preds = %38, %34
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %99

43:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = call noundef i32 @_ZL15FindPropIdExactRK7UString(ptr noundef nonnull align 8 dereferenceable(16) %44)
  store i32 %45, ptr %12, align 4, !tbaa !12
  %46 = load i32, ptr %12, align 4, !tbaa !12
  %47 = icmp slt i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %43
  store i32 -2147024809, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %96

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %50 = load i32, ptr %12, align 4, !tbaa !12
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds [22 x %struct.CNameToPropID], ptr @_ZL14g_NameToPropID, i64 0, i64 %51
  store ptr %52, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  call void @_ZN5CPropC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15)
  %53 = load i32, ptr %12, align 4, !tbaa !12
  %54 = getelementptr inbounds %struct.CProp, ptr %15, i32 0, i32 0
  store i32 %53, ptr %54, align 8, !tbaa !14
  %55 = getelementptr inbounds %struct.CProp, ptr %15, i32 0, i32 0
  %56 = load i32, ptr %55, align 8, !tbaa !14
  %57 = invoke noundef zeroext i1 @_ZL13IsLogSizePropj(i32 noundef %56)
          to label %58 unwind label %68

58:                                               ; preds = %49
  br i1 %57, label %59, label %80

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.CProp, ptr %15, i32 0, i32 2
  %62 = invoke noundef i32 @_ZL23PROPVARIANT_to_DictSizeRK14tagPROPVARIANTRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 8 dereferenceable(16) %61)
          to label %63 unwind label %72

63:                                               ; preds = %59
  store i32 %62, ptr %16, align 4, !tbaa !12
  %64 = load i32, ptr %16, align 4, !tbaa !12
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %76

66:                                               ; preds = %63
  %67 = load i32, ptr %16, align 4, !tbaa !12
  store i32 %67, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %77

68:                                               ; preds = %90, %80, %49
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %10, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %11, align 4
  br label %95

72:                                               ; preds = %59
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %10, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %95

76:                                               ; preds = %63
  store i32 0, ptr %13, align 4
  br label %77

77:                                               ; preds = %76, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %78 = load i32, ptr %13, align 4
  switch i32 %78, label %94 [
    i32 0, label %79
  ]

79:                                               ; preds = %77
  br label %90

80:                                               ; preds = %58
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.CNameToPropID, ptr %82, i32 0, i32 0
  %84 = load i16, ptr %83, align 8, !tbaa !18
  %85 = getelementptr inbounds %struct.CProp, ptr %15, i32 0, i32 2
  %86 = invoke noundef zeroext i1 @_ZL15ConvertPropertyRK14tagPROPVARIANTtRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %81, i16 noundef zeroext %84, ptr noundef nonnull align 8 dereferenceable(16) %85)
          to label %87 unwind label %68

87:                                               ; preds = %80
  br i1 %86, label %89, label %88

88:                                               ; preds = %87
  store i32 -2147024809, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %94

89:                                               ; preds = %87
  br label %90

90:                                               ; preds = %89, %79
  %91 = getelementptr inbounds %struct.CProps, ptr %17, i32 0, i32 0
  %92 = invoke noundef i32 @_ZN13CObjectVectorI5CPropE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %91, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %93 unwind label %68

93:                                               ; preds = %90
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %94

94:                                               ; preds = %93, %88, %77
  call void @_ZN5CPropD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %96

95:                                               ; preds = %72, %68
  call void @_ZN5CPropD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %99

96:                                               ; preds = %94, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %97

97:                                               ; preds = %96, %33, %21
  %98 = load i32, ptr %4, align 4
  ret i32 %98

99:                                               ; preds = %95, %42
  %100 = load ptr, ptr %10, align 8
  %101 = load i32, ptr %11, align 4
  %102 = insertvalue { ptr, i32 } poison, ptr %100, 0
  %103 = insertvalue { ptr, i32 } %102, i32 %101, 1
  resume { ptr, i32 } %103
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { "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, !11, i64 0}
!10 = !{!"_ZTS14tagPROPVARIANT", !11, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !7, i64 8}
!11 = !{!"short", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS5CProp", !13, i64 0, !16, i64 4, !17, i64 8}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSN8NWindows4NCOM12CPropVariantE", !10, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"_ZTS13CNameToPropID", !11, i64 0, !6, i64 8}


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

%struct.CNameToPropID = type { i16, ptr }
%class.UString = type { ptr, i32, i32 }
%struct.CProp = type { i32, i8, %"class.NWindows::NCOM::CPropVariant" }
%"class.NWindows::NCOM::CPropVariant" = type { %struct.tagPROPVARIANT }
%struct.tagPROPVARIANT = type { i16, i16, i16, i16, %union.anon }
%union.anon = type { %struct._LARGE_INTEGER }
%struct._LARGE_INTEGER = type { i64 }

@_ZL14g_NameToPropID = external hidden local_unnamed_addr constant [22 x %struct.CNameToPropID], align 16

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK7UString3LenEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL15FindPropIdExactRK7UString(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL13IsLogSizePropj(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL15ConvertPropertyRK14tagPROPVARIANTtRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16), i16 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

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

declare void @_ZN7UStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL10SplitParamRK7UStringRS_S2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CMethodProps26ParseParamsFromPROPVARIANTERK7UStringRK14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.UString, align 8
  %5 = alloca %class.UString, align 8
  %6 = alloca %struct.CProp, align 8
  %7 = tail call noundef i32 @_ZNK7UString3LenEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %46, label %9

9:                                                ; preds = %3
  %10 = load i16, ptr %2, align 8, !tbaa !5
  %11 = icmp eq i16 %10, 0
  br i1 %11, label %12, label %22

12:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN7UStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  invoke void @_ZN7UStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %13 unwind label %17

13:                                               ; preds = %12
  invoke void @_ZL10SplitParamRK7UStringRS_S2_(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %14 unwind label %19

14:                                               ; preds = %13
  %15 = invoke noundef i32 @_ZN12CMethodProps8SetParamERK7UStringS2_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %16 unwind label %19

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

17:                                               ; preds = %12
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %21

19:                                               ; preds = %14, %13
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br label %21

21:                                               ; preds = %19, %17
  %.pn24 = phi { ptr, i32 } [ %20, %19 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %47

22:                                               ; preds = %9
  %23 = tail call noundef i32 @_ZL15FindPropIdExactRK7UString(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %24 = icmp slt i32 %23, 0
  br i1 %24, label %46, label %25

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @_ZN5CPropC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6)
  store i32 %23, ptr %6, align 8, !tbaa !10
  %26 = call noundef zeroext i1 @_ZL13IsLogSizePropj(i32 noundef %23)
  br i1 %26, label %27, label %35

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %6, i64 8
  %29 = invoke noundef i32 @_ZL23PROPVARIANT_to_DictSizeRK14tagPROPVARIANTRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %30 unwind label %33

30:                                               ; preds = %27
  %.not = icmp eq i32 %29, 0
  br i1 %.not, label %42, label %44

31:                                               ; preds = %42, %35
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %45

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

35:                                               ; preds = %25
  %36 = zext nneg i32 %23 to i64
  %37 = getelementptr inbounds [22 x %struct.CNameToPropID], ptr @_ZL14g_NameToPropID, i64 0, i64 %36
  %38 = load i16, ptr %37, align 16, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %6, i64 8
  %40 = invoke noundef zeroext i1 @_ZL15ConvertPropertyRK14tagPROPVARIANTtRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %2, i16 noundef zeroext %38, ptr noundef nonnull align 8 dereferenceable(16) %39)
          to label %41 unwind label %31

41:                                               ; preds = %35
  br i1 %40, label %42, label %44

42:                                               ; preds = %41, %30
  %43 = invoke noundef i32 @_ZN13CObjectVectorI5CPropE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %44 unwind label %31

44:                                               ; preds = %42, %41, %30
  %.1 = phi i32 [ %29, %30 ], [ -2147024809, %41 ], [ 0, %42 ]
  call void @_ZN5CPropD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %46

45:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %34, %33 ]
  call void @_ZN5CPropD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %47

46:                                               ; preds = %44, %22, %3, %16
  %.3 = phi i32 [ %15, %16 ], [ -2147024809, %3 ], [ %.1, %44 ], [ -2147024809, %22 ]
  ret i32 %.3

47:                                               ; preds = %45, %21
  %.pn24.pn = phi { ptr, i32 } [ %.pn24, %21 ], [ %.pn, %45 ]
  resume { ptr, i32 } %.pn24.pn
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { "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, !7, i64 0}
!6 = !{!"_ZTS14tagPROPVARIANT", !7, i64 0, !7, i64 2, !7, i64 4, !7, i64 6, !8, i64 8}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !12, i64 0}
!11 = !{!"_ZTS5CProp", !12, i64 0, !13, i64 4, !14, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTSN8NWindows4NCOM12CPropVariantE", !6, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTS13CNameToPropID", !7, i64 0, !17, i64 8}
!17 = !{!"any pointer", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass