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

; 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.GUID = type { i32, i16, i16, [8 x i8] }
%class.CMyComPtr = type { ptr }
%class.CObjectVector.0 = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }
%"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 }
%class.UString = type { ptr, i32, i32 }
%class.CRecordVector.1 = type { ptr, i32, i32 }
%struct.CProperty = type { %class.UString, %class.UString }

@IID_ISetProperties = external global %struct.GUID, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z13SetPropertiesP8IUnknownRK13CObjectVectorI9CPropertyE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %class.CMyComPtr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %class.CObjectVector.0, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"class.NWindows::NCOM::CPropVariant", align 8
  %15 = alloca %class.UString, align 8
  %16 = alloca i32, align 4
  %17 = alloca %class.CRecordVector.1, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call noundef zeroext i1 @_ZNK13CObjectVectorI9CPropertyE7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
  br i1 %20, label %21, label %22

21:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  br label %271

22:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  call void @_ZN9CMyComPtrI14ISetPropertiesEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = invoke noundef ptr @_ZN9CMyComPtrI14ISetPropertiesEadEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %25 unwind label %34

25:                                               ; preds = %22
  %26 = load ptr, ptr %23, align 8, !tbaa !9
  %27 = getelementptr inbounds ptr, ptr %26, i64 0
  %28 = load ptr, ptr %27, align 8
  %29 = invoke noundef i32 %28(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(16) @IID_ISetProperties, ptr noundef %24)
          to label %30 unwind label %34

30:                                               ; preds = %25
  %31 = invoke noundef zeroext i1 @_ZNK9CMyComPtrI14ISetPropertiesEntEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %32 unwind label %34

32:                                               ; preds = %30
  br i1 %31, label %33, label %38

33:                                               ; preds = %32
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %269

34:                                               ; preds = %30, %25, %22
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %7, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %8, align 4
  br label %270

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #9
  invoke void @_ZN13CObjectVectorI7UStringEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %39 unwind label %93

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = invoke noundef i32 @_ZNK13CObjectVectorI9CPropertyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %40)
          to label %42 unwind label %97

42:                                               ; preds = %39
  %43 = zext i32 %41 to i64
  %44 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %43, i64 16)
  %45 = extractvalue { i64, i1 } %44, 1
  %46 = extractvalue { i64, i1 } %44, 0
  %47 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %46, i64 8)
  %48 = extractvalue { i64, i1 } %47, 1
  %49 = or i1 %45, %48
  %50 = extractvalue { i64, i1 } %47, 0
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #10
          to label %53 unwind label %97

53:                                               ; preds = %42
  store i64 %43, ptr %52, align 16
  %54 = getelementptr inbounds i8, ptr %52, i64 8
  %55 = icmp eq i64 %43, 0
  br i1 %55, label %63, label %56

56:                                               ; preds = %53
  %57 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %54, i64 %43
  br label %58

58:                                               ; preds = %60, %56
  %59 = phi ptr [ %54, %56 ], [ %61, %60 ]
  invoke void @_ZN8NWindows4NCOM12CPropVariantC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %59)
          to label %60 unwind label %101

60:                                               ; preds = %58
  %61 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %59, i64 1
  %62 = icmp eq ptr %61, %57
  br i1 %62, label %63, label %58

63:                                               ; preds = %60, %53
  store ptr %54, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %64

64:                                               ; preds = %163, %63
  %65 = load i32, ptr %12, align 4, !tbaa !11
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = invoke noundef i32 @_ZNK13CObjectVectorI9CPropertyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %66)
          to label %68 unwind label %111

68:                                               ; preds = %64
  %69 = icmp ult i32 %65, %67
  br i1 %69, label %70, label %170

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load i32, ptr %12, align 4, !tbaa !11
  %73 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK13CObjectVectorI9CPropertyEixEj(ptr noundef nonnull align 8 dereferenceable(16) %71, i32 noundef %72)
          to label %74 unwind label %115

74:                                               ; preds = %70
  store ptr %73, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  invoke void @_ZN8NWindows4NCOM12CPropVariantC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %75 unwind label %119

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.CProperty, ptr %76, i32 0, i32 0
  invoke void @_ZN7UStringC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %77)
          to label %78 unwind label %123

78:                                               ; preds = %75
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.CProperty, ptr %79, i32 0, i32 1
  %81 = invoke noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %80)
          to label %82 unwind label %127

82:                                               ; preds = %78
  br i1 %81, label %83, label %150

83:                                               ; preds = %82
  %84 = invoke noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %85 unwind label %127

85:                                               ; preds = %83
  br i1 %84, label %149, label %86

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %87 = invoke noundef signext i32 @_ZNK7UString4BackEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %88 unwind label %131

88:                                               ; preds = %86
  store i32 %87, ptr %16, align 4, !tbaa !13
  %89 = load i32, ptr %16, align 4, !tbaa !13
  %90 = icmp eq i32 %89, 45
  br i1 %90, label %91, label %135

91:                                               ; preds = %88
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext false) #9
  br label %141

93:                                               ; preds = %38
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %7, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %8, align 4
  br label %268

97:                                               ; preds = %42, %39
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %7, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %8, align 4
  br label %267

101:                                              ; preds = %58
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  %105 = icmp eq ptr %54, %59
  br i1 %105, label %110, label %106

106:                                              ; preds = %106, %101
  %107 = phi ptr [ %59, %101 ], [ %108, %106 ]
  %108 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %107, i64 -1
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %108) #9
  %109 = icmp eq ptr %108, %54
  br i1 %109, label %110, label %106

110:                                              ; preds = %106, %101
  call void @_ZdaPvm(ptr noundef %52, i64 noundef %51) #11
  br label %267

111:                                              ; preds = %64
  %112 = landingpad { ptr, i32 }
          catch ptr null
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  br label %226

115:                                              ; preds = %70
  %116 = landingpad { ptr, i32 }
          catch ptr null
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %7, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %8, align 4
  br label %169

119:                                              ; preds = %74
  %120 = landingpad { ptr, i32 }
          catch ptr null
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %7, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %8, align 4
  br label %168

123:                                              ; preds = %75
  %124 = landingpad { ptr, i32 }
          catch ptr null
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %7, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %8, align 4
  br label %167

127:                                              ; preds = %156, %154, %150, %83, %78
  %128 = landingpad { ptr, i32 }
          catch ptr null
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  br label %166

131:                                              ; preds = %146, %86
  %132 = landingpad { ptr, i32 }
          catch ptr null
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %7, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %166

135:                                              ; preds = %88
  %136 = load i32, ptr %16, align 4, !tbaa !13
  %137 = icmp eq i32 %136, 43
  br i1 %137, label %138, label %140

138:                                              ; preds = %135
  %139 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext true) #9
  br label %140

140:                                              ; preds = %138, %135
  br label %141

141:                                              ; preds = %140, %91
  %142 = getelementptr inbounds %struct.tagPROPVARIANT, ptr %14, i32 0, i32 0
  %143 = load i16, ptr %142, align 8, !tbaa !15
  %144 = zext i16 %143 to i32
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %148

146:                                              ; preds = %141
  invoke void @_ZN7UString10DeleteBackEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %147 unwind label %131

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %149

149:                                              ; preds = %148, %85
  br label %154

150:                                              ; preds = %82
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.CProperty, ptr %151, i32 0, i32 1
  invoke void @_ZL17ParseNumberStringRK7UStringRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %152, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %153 unwind label %127

153:                                              ; preds = %150
  br label %154

154:                                              ; preds = %153, %149
  %155 = invoke noundef i32 @_ZN13CObjectVectorI7UStringE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %156 unwind label %127

156:                                              ; preds = %154
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = load i32, ptr %12, align 4, !tbaa !11
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %157, i64 %159
  %161 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %160, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %162 unwind label %127

162:                                              ; preds = %156
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %12, align 4, !tbaa !11
  %165 = add i32 %164, 1
  store i32 %165, ptr %12, align 4, !tbaa !11
  br label %64, !llvm.loop !18

166:                                              ; preds = %131, %127
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  br label %167

167:                                              ; preds = %166, %123
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #9
  br label %168

168:                                              ; preds = %167, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  br label %169

169:                                              ; preds = %168, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %226

170:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  invoke void @_ZN13CRecordVectorIPKwEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %171 unwind label %188

171:                                              ; preds = %170
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %172

172:                                              ; preds = %185, %171
  %173 = load i32, ptr %12, align 4, !tbaa !11
  %174 = invoke noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %175 unwind label %192

175:                                              ; preds = %172
  %176 = icmp ult i32 %173, %174
  br i1 %176, label %177, label %196

177:                                              ; preds = %175
  %178 = load i32, ptr %12, align 4, !tbaa !11
  %179 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %178)
          to label %180 unwind label %192

180:                                              ; preds = %177
  %181 = invoke noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %179)
          to label %182 unwind label %192

182:                                              ; preds = %180
  %183 = invoke noundef i32 @_ZN13CRecordVectorIPKwE3AddES1_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef %181)
          to label %184 unwind label %192

184:                                              ; preds = %182
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %12, align 4, !tbaa !11
  %187 = add i32 %186, 1
  store i32 %187, ptr %12, align 4, !tbaa !11
  br label %172, !llvm.loop !20

188:                                              ; preds = %170
  %189 = landingpad { ptr, i32 }
          catch ptr null
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %7, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %8, align 4
  br label %225

192:                                              ; preds = %182, %180, %177, %172
  %193 = landingpad { ptr, i32 }
          catch ptr null
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %7, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %8, align 4
  br label %224

196:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %197 = invoke noundef ptr @_ZNK9CMyComPtrI14ISetPropertiesEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %198 unwind label %213

198:                                              ; preds = %196
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN13CRecordVectorIPKwE5FrontEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %200 unwind label %213

200:                                              ; preds = %198
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = invoke noundef i32 @_ZNK13CRecordVectorIPKwE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %203 unwind label %213

203:                                              ; preds = %200
  %204 = load ptr, ptr %197, align 8, !tbaa !9
  %205 = getelementptr inbounds ptr, ptr %204, i64 5
  %206 = load ptr, ptr %205, align 8
  %207 = invoke noundef i32 %206(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef %199, ptr noundef %201, i32 noundef %202)
          to label %208 unwind label %213

208:                                              ; preds = %203
  store i32 %207, ptr %18, align 4, !tbaa !11
  %209 = load i32, ptr %18, align 4, !tbaa !11
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %217

211:                                              ; preds = %208
  %212 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %212, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %218

213:                                              ; preds = %203, %200, %198, %196
  %214 = landingpad { ptr, i32 }
          catch ptr null
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %7, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %224

217:                                              ; preds = %208
  store i32 0, ptr %9, align 4
  br label %218

218:                                              ; preds = %217, %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  %219 = load i32, ptr %9, align 4
  switch i32 %219, label %221 [
    i32 0, label %220
  ]

220:                                              ; preds = %218
  store i32 0, ptr %9, align 4
  br label %221

221:                                              ; preds = %220, %218
  call void @_ZN13CRecordVectorIPKwED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  %222 = load i32, ptr %9, align 4
  switch i32 %222, label %266 [
    i32 0, label %223
  ]

223:                                              ; preds = %221
  br label %250

224:                                              ; preds = %213, %192
  call void @_ZN13CRecordVectorIPKwED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #9
  br label %225

225:                                              ; preds = %224, %188
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  br label %226

226:                                              ; preds = %225, %169, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %7, align 8
  %229 = call ptr @__cxa_begin_catch(ptr %228) #9
  %230 = load ptr, ptr %11, align 8, !tbaa !5
  %231 = icmp eq ptr %230, null
  br i1 %231, label %244, label %232

232:                                              ; preds = %227
  %233 = getelementptr inbounds i8, ptr %230, i64 -8
  %234 = load i64, ptr %233, align 8
  %235 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %230, i64 %234
  %236 = icmp eq ptr %230, %235
  br i1 %236, label %241, label %237

237:                                              ; preds = %237, %232
  %238 = phi ptr [ %235, %232 ], [ %239, %237 ]
  %239 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %238, i64 -1
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %239) #9
  %240 = icmp eq ptr %239, %230
  br i1 %240, label %241, label %237

241:                                              ; preds = %237, %232
  %242 = mul i64 16, %234
  %243 = add i64 %242, 8
  call void @_ZdaPvm(ptr noundef %233, i64 noundef %243) #11
  br label %244

244:                                              ; preds = %241, %227
  invoke void @__cxa_rethrow() #12
          to label %281 unwind label %245

245:                                              ; preds = %244
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %7, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %8, align 4
  invoke void @__cxa_end_catch()
          to label %249 unwind label %278

249:                                              ; preds = %245
  br label %267

250:                                              ; preds = %223
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = icmp eq ptr %251, null
  br i1 %252, label %265, label %253

253:                                              ; preds = %250
  %254 = getelementptr inbounds i8, ptr %251, i64 -8
  %255 = load i64, ptr %254, align 8
  %256 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %251, i64 %255
  %257 = icmp eq ptr %251, %256
  br i1 %257, label %262, label %258

258:                                              ; preds = %258, %253
  %259 = phi ptr [ %256, %253 ], [ %260, %258 ]
  %260 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %259, i64 -1
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %260) #9
  %261 = icmp eq ptr %260, %251
  br i1 %261, label %262, label %258

262:                                              ; preds = %258, %253
  %263 = mul i64 16, %255
  %264 = add i64 %263, 8
  call void @_ZdaPvm(ptr noundef %254, i64 noundef %264) #11
  br label %265

265:                                              ; preds = %262, %250
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %266

266:                                              ; preds = %265, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @_ZN13CObjectVectorI7UStringED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  br label %269

267:                                              ; preds = %249, %110, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @_ZN13CObjectVectorI7UStringED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #9
  br label %268

268:                                              ; preds = %267, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #9
  br label %270

269:                                              ; preds = %266, %33
  call void @_ZN9CMyComPtrI14ISetPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %271

270:                                              ; preds = %268, %34
  call void @_ZN9CMyComPtrI14ISetPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %273

271:                                              ; preds = %269, %21
  %272 = load i32, ptr %3, align 4
  ret i32 %272

273:                                              ; preds = %270
  %274 = load ptr, ptr %7, align 8
  %275 = load i32, ptr %8, align 4
  %276 = insertvalue { ptr, i32 } poison, ptr %274, 0
  %277 = insertvalue { ptr, i32 } %276, i32 %275, 1
  resume { ptr, i32 } %277

278:                                              ; preds = %245
  %279 = landingpad { ptr, i32 }
          catch ptr null
  %280 = extractvalue { ptr, i32 } %279, 0
  call void @__clang_call_terminate(ptr %280) #13
  unreachable

281:                                              ; preds = %244
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #5

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

declare void @_ZN7UStringC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

; 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 signext i32 @_ZNK7UString4BackEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6

; 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 @_ZN13CRecordVectorIPKwEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_rethrow()

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #8

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(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 = { nobuiltin 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 #6 = { "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 #7 = { 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 #8 = { noinline noreturn nounwind uwtable "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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { noreturn }
attributes #13 = { noreturn 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"wchar_t", !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTS14tagPROPVARIANT", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6, !7, i64 8}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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.GUID = type { i32, i16, i16, [8 x i8] }
%class.CMyComPtr = type { ptr }
%class.CObjectVector.0 = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }
%"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 }
%class.UString = type { ptr, i32, i32 }
%class.CRecordVector.1 = type { ptr, i32, i32 }

@IID_ISetProperties = external global %struct.GUID, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z13SetPropertiesP8IUnknownRK13CObjectVectorI9CPropertyE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.CMyComPtr, align 8
  %4 = alloca %class.CObjectVector.0, align 8
  %5 = alloca %"class.NWindows::NCOM::CPropVariant", align 8
  %6 = alloca %class.UString, align 8
  %7 = alloca %class.CRecordVector.1, align 8
  %8 = tail call noundef zeroext i1 @_ZNK13CObjectVectorI9CPropertyE7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  br i1 %8, label %107, label %9

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @_ZN9CMyComPtrI14ISetPropertiesEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %10 = call noundef ptr @_ZN9CMyComPtrI14ISetPropertiesEadEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = load ptr, ptr %11, align 8
  %13 = invoke noundef i32 %12(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(16) @IID_ISetProperties, ptr noundef %10)
          to label %14 unwind label %16

14:                                               ; preds = %9
  %15 = call noundef zeroext i1 @_ZNK9CMyComPtrI14ISetPropertiesEntEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  br i1 %15, label %105, label %18

16:                                               ; preds = %9
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %106

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #8
  invoke void @_ZN13CObjectVectorI7UStringEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %19 unwind label %44

19:                                               ; preds = %18
  %20 = call noundef i32 @_ZNK13CObjectVectorI9CPropertyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %21 = zext i32 %20 to i64
  %22 = shl nuw nsw i64 %21, 4
  %23 = or disjoint i64 %22, 8
  %24 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %23) #9
          to label %25 unwind label %46

25:                                               ; preds = %19
  store i64 %21, ptr %24, align 16
  %.ptr.ptr = getelementptr inbounds i8, ptr %24, i64 8
  %26 = icmp eq i32 %20, 0
  br i1 %26, label %.loopexit60, label %27

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %.ptr.ptr, i64 %21
  br label %29

29:                                               ; preds = %29, %27
  %30 = phi ptr [ %.ptr.ptr, %27 ], [ %31, %29 ]
  call void @_ZN8NWindows4NCOM12CPropVariantC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30)
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %32 = icmp eq ptr %31, %28
  br i1 %32, label %.loopexit60, label %29

.loopexit60:                                      ; preds = %29, %25
  %33 = call noundef i32 @_ZNK13CObjectVectorI9CPropertyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %.not66 = icmp eq i32 %33, 0
  br i1 %.not66, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.loopexit60, %65
  %indvars.iv = phi i64 [ %indvars.iv.next, %65 ], [ 0, %.loopexit60 ]
  %34 = trunc nuw i64 %indvars.iv to i32
  %35 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK13CObjectVectorI9CPropertyEixEj(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %34)
          to label %36 unwind label %48

36:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  call void @_ZN8NWindows4NCOM12CPropVariantC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  invoke void @_ZN7UStringC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %37 unwind label %50

37:                                               ; preds = %36
  %38 = getelementptr inbounds i8, ptr %35, i64 16
  %39 = call noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %38)
  br i1 %39, label %40, label %59

40:                                               ; preds = %37
  %41 = call noundef zeroext i1 @_ZNK7UString7IsEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  br i1 %41, label %60, label %42

42:                                               ; preds = %40
  %43 = call noundef signext i32 @_ZNK7UString4BackEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  switch i32 %43, label %56 [
    i32 45, label %.sink.split
    i32 43, label %54
  ]

44:                                               ; preds = %18
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %104

46:                                               ; preds = %19
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %103

48:                                               ; preds = %.lr.ph
  %49 = landingpad { ptr, i32 }
          catch ptr null
  br label %91

50:                                               ; preds = %36
  %51 = landingpad { ptr, i32 }
          catch ptr null
  br label %69

52:                                               ; preds = %62, %60, %59
  %53 = landingpad { ptr, i32 }
          catch ptr null
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  br label %69

54:                                               ; preds = %42
  br label %.sink.split

.sink.split:                                      ; preds = %42, %54
  %.sink = phi i1 [ true, %54 ], [ false, %42 ]
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16) %5, i1 noundef zeroext %.sink) #8
  br label %56

56:                                               ; preds = %.sink.split, %42
  %57 = load i16, ptr %5, align 8, !tbaa !8
  %.not47 = icmp eq i16 %57, 0
  br i1 %.not47, label %60, label %58

58:                                               ; preds = %56
  call void @_ZN7UString10DeleteBackEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  br label %60

59:                                               ; preds = %37
  invoke void @_ZL17ParseNumberStringRK7UStringRN8NWindows4NCOM12CPropVariantE(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %60 unwind label %52

60:                                               ; preds = %56, %58, %59, %40
  %61 = invoke noundef i32 @_ZN13CObjectVectorI7UStringE3AddERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %62 unwind label %52

62:                                               ; preds = %60
  %63 = getelementptr inbounds %"class.NWindows::NCOM::CPropVariant", ptr %.ptr.ptr, i64 %indvars.iv
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %65 unwind label %52

65:                                               ; preds = %62
  call void @_ZN7UStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %66 = call noundef i32 @_ZNK13CObjectVectorI9CPropertyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %67 = zext i32 %66 to i64
  %68 = icmp ult i64 %indvars.iv.next, %67
  br i1 %68, label %.lr.ph, label %._crit_edge, !llvm.loop !12

69:                                               ; preds = %52, %50
  %.pn48 = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %91

._crit_edge:                                      ; preds = %65, %.loopexit60
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  call void @_ZN13CRecordVectorIPKwEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %70 = call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %.not67 = icmp eq i32 %70, 0
  br i1 %.not67, label %._crit_edge65, label %.lr.ph64

.lr.ph64:                                         ; preds = %._crit_edge, %74
  %.13762 = phi i32 [ %75, %74 ], [ 0, %._crit_edge ]
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.13762)
  %72 = call noundef ptr @_ZNK7UStringcvPKwEv(ptr noundef nonnull align 8 dereferenceable(16) %71)
  %73 = invoke noundef i32 @_ZN13CRecordVectorIPKwE3AddES1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %72)
          to label %74 unwind label %78

74:                                               ; preds = %.lr.ph64
  %75 = add nuw i32 %.13762, 1
  %76 = call noundef i32 @_ZNK13CObjectVectorI7UStringE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %77 = icmp ult i32 %75, %76
  br i1 %77, label %.lr.ph64, label %._crit_edge65, !llvm.loop !14

78:                                               ; preds = %.lr.ph64
  %79 = landingpad { ptr, i32 }
          catch ptr null
  br label %90

._crit_edge65:                                    ; preds = %74, %._crit_edge
  %80 = call noundef ptr @_ZNK9CMyComPtrI14ISetPropertiesEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN13CRecordVectorIPKwE5FrontEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %82 = call noundef i32 @_ZNK13CRecordVectorIPKwE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %83 = load ptr, ptr %80, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 40
  %85 = load ptr, ptr %84, align 8
  %86 = invoke noundef i32 %85(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull %81, ptr noundef nonnull %.ptr.ptr, i32 noundef %82)
          to label %87 unwind label %88

87:                                               ; preds = %._crit_edge65
  %.not = icmp eq i32 %86, 0
  call void @_ZN13CRecordVectorIPKwED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br i1 %.not, label %98, label %102

88:                                               ; preds = %._crit_edge65
  %89 = landingpad { ptr, i32 }
          catch ptr null
  br label %90

90:                                               ; preds = %88, %78
  %.pn = phi { ptr, i32 } [ %79, %78 ], [ %89, %88 ]
  call void @_ZN13CRecordVectorIPKwED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  br label %91

91:                                               ; preds = %48, %69, %90
  %.pn48.pn.pn = phi { ptr, i32 } [ %.pn, %90 ], [ %.pn48, %69 ], [ %49, %48 ]
  %.332 = extractvalue { ptr, i32 } %.pn48.pn.pn, 0
  %92 = call ptr @__cxa_begin_catch(ptr %.332) #8
  %93 = load i64, ptr %24, align 8
  %.idx49 = shl i64 %93, 4
  %.ptr.add = or disjoint i64 %.idx49, 8
  %94 = icmp eq i64 %93, 0
  br i1 %94, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %91, %.preheader
  %.idx51 = phi i64 [ %.add52, %.preheader ], [ %.ptr.add, %91 ]
  %.add52 = add nsw i64 %.idx51, -16
  %.ptr53 = getelementptr inbounds i8, ptr %24, i64 %.add52
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr53) #8
  %95 = icmp eq i64 %.add52, 8
  br i1 %95, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %91
  call void @_ZdaPvm(ptr noundef nonnull %24, i64 noundef %.ptr.add) #10
  invoke void @__cxa_rethrow() #11
          to label %111 unwind label %96

96:                                               ; preds = %.loopexit
  %97 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %103 unwind label %108

98:                                               ; preds = %87
  %99 = load i64, ptr %24, align 8
  %.idx = shl i64 %99, 4
  %.add = or disjoint i64 %.idx, 8
  %100 = icmp eq i64 %99, 0
  br i1 %100, label %.loopexit59, label %.preheader58

.preheader58:                                     ; preds = %98, %.preheader58
  %.idx43 = phi i64 [ %.add44, %.preheader58 ], [ %.add, %98 ]
  %.add44 = add nsw i64 %.idx43, -16
  %.ptr46 = getelementptr inbounds i8, ptr %24, i64 %.add44
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr46) #8
  %101 = icmp eq i64 %.add44, 8
  br i1 %101, label %.loopexit59, label %.preheader58

.loopexit59:                                      ; preds = %.preheader58, %98
  call void @_ZdaPvm(ptr noundef nonnull %24, i64 noundef %.add) #10
  br label %102

102:                                              ; preds = %87, %.loopexit59
  %.1 = phi i32 [ 0, %.loopexit59 ], [ %86, %87 ]
  call void @_ZN13CObjectVectorI7UStringED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  br label %105

103:                                              ; preds = %96, %46
  %.pn54 = phi { ptr, i32 } [ %97, %96 ], [ %47, %46 ]
  call void @_ZN13CObjectVectorI7UStringED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #8
  br label %104

104:                                              ; preds = %103, %44
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %103 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #8
  br label %106

105:                                              ; preds = %14, %102
  %.2 = phi i32 [ %.1, %102 ], [ 0, %14 ]
  call void @_ZN9CMyComPtrI14ISetPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  br label %107

106:                                              ; preds = %104, %16
  %.pn54.pn.pn = phi { ptr, i32 } [ %.pn54.pn, %104 ], [ %17, %16 ]
  call void @_ZN9CMyComPtrI14ISetPropertiesED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn54.pn.pn

107:                                              ; preds = %2, %105
  %.3 = phi i32 [ %.2, %105 ], [ 0, %2 ]
  ret i32 %.3

108:                                              ; preds = %96
  %109 = landingpad { ptr, i32 }
          catch ptr null
  %110 = extractvalue { ptr, i32 } %109, 0
  call void @__clang_call_terminate(ptr %110) #12
  unreachable

111:                                              ; preds = %.loopexit
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK13CObjectVectorI9CPropertyE7IsEmptyEv(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.start.p0(i64 immarg, ptr nocapture) #1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

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

declare void @_ZN7UStringC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

; 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 signext i32 @_ZNK7UString4BackEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

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

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

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

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

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

; 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 @_ZN13CRecordVectorIPKwEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN13CObjectVectorI7UStringEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) 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

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

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

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

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_rethrow() local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #7

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin allocsize(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 = { nobuiltin 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 #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 "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 #7 = { noinline noreturn nounwind uwtable "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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }
attributes #11 = { noreturn }
attributes #12 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTS14tagPROPVARIANT", !10, i64 0, !10, i64 2, !10, i64 4, !10, i64 6, !11, i64 8}
!10 = !{!"short", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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