; 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 }
%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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z12StringToBoolPKwRb(ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #0

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

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

; 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) #2

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

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CMethodProps8SetParamERK7UStringS2_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #1 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 i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.CProp, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.NWindows::NCOM::CPropVariant", align 8
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = 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
  %19 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = call noundef i32 @_ZL15FindPropIdExactRK7UString(ptr noundef nonnull align 8 dereferenceable(16) %20)
  store i32 %21, ptr %8, align 4, !tbaa !9
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %3
  store i32 -2147024809, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %182

25:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds [22 x %struct.CNameToPropID], ptr @_ZL14g_NameToPropID, i64 0, i64 %27
  store ptr %28, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #6
  call void @_ZN5CPropC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = getelementptr inbounds %struct.CProp, ptr %11, i32 0, i32 0
  store i32 %29, ptr %30, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct.CProp, ptr %11, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = invoke noundef zeroext i1 @_ZL13IsLogSizePropj(i32 noundef %32)
          to label %34 unwind label %44

34:                                               ; preds = %25
  br i1 %33, label %35, label %56

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.CProp, ptr %11, i32 0, i32 2
  %38 = invoke noundef i32 @_ZL16StringToDictSizeRK7UStringRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %37)
          to label %39 unwind label %48

39:                                               ; preds = %35
  store i32 %38, ptr %14, align 4, !tbaa !9
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %52

42:                                               ; preds = %39
  %43 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %43, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %53

44:                                               ; preds = %176, %25
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %12, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %13, align 4
  br label %181

48:                                               ; preds = %35
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %12, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %181

52:                                               ; preds = %39
  store i32 0, ptr %9, align 4
  br label %53

53:                                               ; preds = %52, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %54 = load i32, ptr %9, align 4
  switch i32 %54, label %180 [
    i32 0, label %55
  ]

55:                                               ; preds = %53
  br label %176

56:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  invoke void @_ZN8NWindows4NCOM12CPropVariantC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %57 unwind label %67

57:                                               ; preds = %56
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.CNameToPropID, ptr %58, i32 0, i32 0
  %60 = load i16, ptr %59, align 8, !tbaa !17
  %61 = zext i16 %60 to i32
  %62 = icmp eq i32 %61, 8
  br i1 %62, label %63, label %75

63:                                               ; preds = %57
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7UString(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %64)
          to label %66 unwind label %71

66:                                               ; preds = %63
  br label %162

67:                                               ; preds = %56
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %12, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %13, align 4
  br label %175

71:                                               ; preds = %162, %154, %98, %63
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %12, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %13, align 4
  br label %174

75:                                               ; preds = %57
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.CNameToPropID, ptr %76, i32 0, i32 0
  %78 = load i16, ptr %77, align 8, !tbaa !17
  %79 = zext i16 %78 to i32
  %80 = icmp eq i32 %79, 11
  br i1 %80, label %81, label %98

81:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = invoke noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %82)
          to label %84 unwind label %87

84:                                               ; preds = %81
  %85 = call noundef zeroext i1 @_Z12StringToBoolPKwRb(ptr noundef %83, ptr noundef nonnull align 1 dereferenceable(1) %16)
  br i1 %85, label %91, label %86

86:                                               ; preds = %84
  store i32 -2147024809, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %95

87:                                               ; preds = %81
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %12, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  br label %174

91:                                               ; preds = %84
  %92 = load i8, ptr %16, align 1, !tbaa !19, !range !20, !noundef !21
  %93 = trunc i8 %92 to i1
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext %93) #6
  store i32 0, ptr %9, align 4
  br label %95

95:                                               ; preds = %91, %86
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  %96 = load i32, ptr %9, align 4
  switch i32 %96, label %171 [
    i32 0, label %97
  ]

97:                                               ; preds = %95
  br label %161

98:                                               ; preds = %75
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = invoke noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %99)
          to label %101 unwind label %71

101:                                              ; preds = %98
  br i1 %100, label %160, label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.CNameToPropID, ptr %103, i32 0, i32 0
  %105 = load i16, ptr %104, align 8, !tbaa !17
  %106 = zext i16 %105 to i32
  %107 = icmp eq i32 %106, 19
  br i1 %107, label %108, label %128

108:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = invoke noundef i32 @_Z19ParseStringToUInt32RK7UStringRj(ptr noundef nonnull align 8 dereferenceable(16) %109, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %111 unwind label %119

111:                                              ; preds = %108
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = invoke noundef i32 @_ZNK7UString3LenEv(ptr noundef nonnull align 8 dereferenceable(16) %112)
          to label %114 unwind label %119

114:                                              ; preds = %111
  %115 = icmp eq i32 %110, %113
  br i1 %115, label %116, label %123

116:                                              ; preds = %114
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %117) #6
  br label %127

119:                                              ; preds = %123, %111, %108
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %12, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %174

123:                                              ; preds = %114
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7UString(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %124)
          to label %126 unwind label %119

126:                                              ; preds = %123
  br label %127

127:                                              ; preds = %126, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %159

128:                                              ; preds = %102
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.CNameToPropID, ptr %129, i32 0, i32 0
  %131 = load i16, ptr %130, align 8, !tbaa !17
  %132 = zext i16 %131 to i32
  %133 = icmp eq i32 %132, 21
  br i1 %133, label %134, label %154

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = invoke noundef i32 @_ZL19ParseStringToUInt64RK7UStringRy(ptr noundef nonnull align 8 dereferenceable(16) %135, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %137 unwind label %145

137:                                              ; preds = %134
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = invoke noundef i32 @_ZNK7UString3LenEv(ptr noundef nonnull align 8 dereferenceable(16) %138)
          to label %140 unwind label %145

140:                                              ; preds = %137
  %141 = icmp eq i32 %136, %139
  br i1 %141, label %142, label %149

142:                                              ; preds = %140
  %143 = load i64, ptr %18, align 8, !tbaa !22
  %144 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef %143) #6
  br label %153

145:                                              ; preds = %149, %137, %134
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %12, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %174

149:                                              ; preds = %140
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7UString(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %150)
          to label %152 unwind label %145

152:                                              ; preds = %149
  br label %153

153:                                              ; preds = %152, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %158

154:                                              ; preds = %128
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7UString(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %155)
          to label %157 unwind label %71

157:                                              ; preds = %154
  br label %158

158:                                              ; preds = %157, %153
  br label %159

159:                                              ; preds = %158, %127
  br label %160

160:                                              ; preds = %159, %101
  br label %161

161:                                              ; preds = %160, %97
  br label %162

162:                                              ; preds = %161, %66
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.CNameToPropID, ptr %163, i32 0, i32 0
  %165 = load i16, ptr %164, align 8, !tbaa !17
  %166 = getelementptr inbounds %struct.CProp, ptr %11, i32 0, i32 2
  %167 = invoke noundef zeroext i1 @_ZL15ConvertPropertyRK14tagPROPVARIANTtRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %15, i16 noundef zeroext %165, ptr noundef nonnull align 8 dereferenceable(16) %166)
          to label %168 unwind label %71

168:                                              ; preds = %162
  br i1 %167, label %170, label %169

169:                                              ; preds = %168
  store i32 -2147024809, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %171

170:                                              ; preds = %168
  store i32 0, ptr %9, align 4
  br label %171

171:                                              ; preds = %170, %169, %95
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %172 = load i32, ptr %9, align 4
  switch i32 %172, label %180 [
    i32 0, label %173
  ]

173:                                              ; preds = %171
  br label %176

174:                                              ; preds = %145, %119, %87, %71
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %175

175:                                              ; preds = %174, %67
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %181

176:                                              ; preds = %173, %55
  %177 = getelementptr inbounds %struct.CProps, ptr %19, i32 0, i32 0
  %178 = invoke noundef i32 @_ZN13CObjectVectorI5CPropE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %177, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %179 unwind label %44

179:                                              ; preds = %176
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %180

180:                                              ; preds = %179, %171, %53
  call void @_ZN5CPropD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %182

181:                                              ; preds = %175, %48, %44
  call void @_ZN5CPropD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %184

182:                                              ; preds = %180, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %183 = load i32, ptr %4, align 4
  ret i32 %183

184:                                              ; preds = %181
  %185 = load ptr, ptr %12, align 8
  %186 = load i32, ptr %13, align 4
  %187 = insertvalue { ptr, i32 } poison, ptr %185, 0
  %188 = insertvalue { ptr, i32 } %187, i32 %186, 1
  resume { ptr, i32 } %188
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7UString(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

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

; 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)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 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)) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 #6 = { 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, !10, i64 0}
!12 = !{!"_ZTS5CProp", !10, i64 0, !13, i64 4, !14, i64 8}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN8NWindows4NCOM12CPropVariantE", !15, i64 0}
!15 = !{!"_ZTS14tagPROPVARIANT", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !7, i64 8}
!16 = !{!"short", !7, i64 0}
!17 = !{!18, !16, i64 0}
!18 = !{!"_ZTS13CNameToPropID", !16, i64 0, !6, i64 8}
!19 = !{!13, !13, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!23, !23, i64 0}
!23 = !{!"long long", !7, i64 0}


; 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 }
%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 nounwind uwtable
declare dso_local noundef zeroext i1 @_Z12StringToBoolPKwRb(ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0

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

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

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN12CMethodProps8SetParamERK7UStringS2_(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 #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %struct.CProp, align 8
  %5 = alloca %"class.NWindows::NCOM::CPropVariant", align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = tail call noundef i32 @_ZL15FindPropIdExactRK7UString(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %10 = icmp slt i32 %9, 0
  br i1 %10, label %72, label %11

11:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZN5CPropC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4)
  store i32 %9, ptr %4, align 8, !tbaa !5
  %12 = call noundef zeroext i1 @_ZL13IsLogSizePropj(i32 noundef %9)
  br i1 %12, label %13, label %21

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  %15 = invoke noundef i32 @_ZL16StringToDictSizeRK7UStringRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %16 unwind label %19

16:                                               ; preds = %13
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %68, label %70

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

19:                                               ; preds = %13
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %71

21:                                               ; preds = %11
  %22 = zext nneg i32 %9 to i64
  %23 = getelementptr inbounds [22 x %struct.CNameToPropID], ptr @_ZL14g_NameToPropID, i64 0, i64 %22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN8NWindows4NCOM12CPropVariantC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %24 = load i16, ptr %23, align 16, !tbaa !14
  switch i16 %24, label %34 [
    i16 8, label %.invoke
    i16 11, label %27
  ]

25:                                               ; preds = %.invoke, %63
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %67

27:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  %28 = call noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %29 = call noundef zeroext i1 @_Z12StringToBoolPKwRb(ptr noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %6)
  br i1 %29, label %30, label %.critedge

30:                                               ; preds = %27
  %31 = load i8, ptr %6, align 1, !tbaa !17, !range !18, !noundef !19
  %32 = trunc nuw i8 %31 to i1
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16) %5, i1 noundef zeroext %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %63

34:                                               ; preds = %21
  %35 = call noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  br i1 %35, label %63, label %36

36:                                               ; preds = %34
  switch i16 %24, label %.invoke [
    i16 19, label %37
    i16 21, label %50
  ]

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %38 = invoke noundef i32 @_Z19ParseStringToUInt32RK7UStringRj(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %39 unwind label %45

39:                                               ; preds = %37
  %40 = call noundef i32 @_ZNK7UString3LenEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %41 = icmp eq i32 %38, %40
  br i1 %41, label %42, label %47

42:                                               ; preds = %39
  %43 = load i32, ptr %7, align 4, !tbaa !20
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %43) #6
  br label %49

45:                                               ; preds = %47, %37
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %67

47:                                               ; preds = %39
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7UString(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %49 unwind label %45

49:                                               ; preds = %47, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %63

50:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %51 = call noundef i32 @_ZL19ParseStringToUInt64RK7UStringRy(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %52 = call noundef i32 @_ZNK7UString3LenEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %53 = icmp eq i32 %51, %52
  br i1 %53, label %54, label %59

54:                                               ; preds = %50
  %55 = load i64, ptr %8, align 8, !tbaa !21
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %55) #6
  br label %61

57:                                               ; preds = %59
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %67

59:                                               ; preds = %50
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7UString(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %61 unwind label %57

61:                                               ; preds = %59, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %63

.invoke:                                          ; preds = %21, %36
  %62 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7UString(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %63 unwind label %25

63:                                               ; preds = %.invoke, %30, %49, %61, %34
  %64 = getelementptr inbounds i8, ptr %4, i64 8
  %65 = invoke noundef zeroext i1 @_ZL15ConvertPropertyRK14tagPROPVARIANTtRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %5, i16 noundef zeroext %24, ptr noundef nonnull align 8 dereferenceable(16) %64)
          to label %66 unwind label %25

66:                                               ; preds = %63
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br i1 %65, label %68, label %70

.critedge:                                        ; preds = %27
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %70

67:                                               ; preds = %57, %45, %25
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %46, %45 ], [ %58, %57 ]
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %71

68:                                               ; preds = %66, %16
  %69 = invoke noundef i32 @_ZN13CObjectVectorI5CPropE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %70 unwind label %17

70:                                               ; preds = %68, %.critedge, %16, %66
  %.4 = phi i32 [ %15, %16 ], [ -2147024809, %66 ], [ -2147024809, %.critedge ], [ 0, %68 ]
  call void @_ZN5CPropD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %72

71:                                               ; preds = %67, %19, %17
  %.pn40 = phi { ptr, i32 } [ %18, %17 ], [ %20, %19 ], [ %.pn, %67 ]
  call void @_ZN5CPropD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn40

72:                                               ; preds = %3, %70
  %.5 = phi i32 [ %.4, %70 ], [ -2147024809, %3 ]
  ret i32 %.5
}

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL16StringToDictSizeRK7UStringRN8NWindows4NCOM12CPropVariantE(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 void @_ZN8NWindows4NCOM12CPropVariantC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7UString(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

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

; 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 #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 #6 = { 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 = !{!"_ZTS5CProp", !7, i64 0, !10, i64 4, !11, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN8NWindows4NCOM12CPropVariantE", !12, i64 0}
!12 = !{!"_ZTS14tagPROPVARIANT", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !8, i64 8}
!13 = !{!"short", !8, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS13CNameToPropID", !13, i64 0, !16, i64 8}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"long long", !8, i64 0}


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