; LLVM IR from jrouwe/JoltPhysics :: TestFramework/UI (UIHorizontalStack)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Array.5" = type { i64, i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17UIHorizontalStack18sUniformChildWidthEP9UIElement(ptr noundef %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::Array.5", align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #5
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %23 unwind label %38

23:                                               ; preds = %1
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9UIElement11GetChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
          to label %26 unwind label %42

26:                                               ; preds = %23
  store ptr %25, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = invoke noundef ptr @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %29 unwind label %46

29:                                               ; preds = %26
  store ptr %28, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = invoke noundef ptr @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %32 unwind label %50

32:                                               ; preds = %29
  store ptr %31, ptr %9, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %148, %32
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = icmp ne ptr %34, %35
  br i1 %36, label %54, label %37

37:                                               ; preds = %33
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %156

38:                                               ; preds = %1
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %5, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %237

42:                                               ; preds = %23
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %5, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %6, align 4
  br label %155

46:                                               ; preds = %26
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %5, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %6, align 4
  br label %154

50:                                               ; preds = %29
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %5, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %6, align 4
  br label %153

54:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %56, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = getelementptr inbounds ptr, ptr %58, i64 7
  %60 = load ptr, ptr %59, align 8
  invoke void %60(ptr noundef nonnull align 8 dereferenceable(144) %57)
          to label %61 unwind label %81

61:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = invoke noundef ptr @_ZN3JPH11DynamicCastI17UIHorizontalStack9UIElementEEPT_PT0_(ptr noundef %62)
          to label %64 unwind label %85

64:                                               ; preds = %61
  store ptr %63, ptr %12, align 8, !tbaa !5
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %132

67:                                               ; preds = %64
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = invoke noundef i32 @_ZNK9UIElement14GetNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %68)
          to label %70 unwind label %85

70:                                               ; preds = %67
  %71 = invoke noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %72 unwind label %85

72:                                               ; preds = %70
  %73 = trunc i64 %71 to i32
  %74 = icmp sgt i32 %69, %73
  br i1 %74, label %75, label %93

75:                                               ; preds = %72
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = invoke noundef i32 @_ZNK9UIElement14GetNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %76)
          to label %78 unwind label %85

78:                                               ; preds = %75
  %79 = sext i32 %77 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  invoke void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %79, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %80 unwind label %89

80:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %93

81:                                               ; preds = %54
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %5, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %6, align 4
  br label %152

85:                                               ; preds = %132, %75, %70, %67, %61
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %5, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %6, align 4
  br label %151

89:                                               ; preds = %78
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %5, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %151

93:                                               ; preds = %80, %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %123, %93
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = invoke noundef i32 @_ZNK9UIElement14GetNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %96)
          to label %98 unwind label %101

98:                                               ; preds = %94
  %99 = icmp slt i32 %95, %97
  br i1 %99, label %105, label %100

100:                                              ; preds = %98
  store i32 4, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %131

101:                                              ; preds = %105, %94
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %5, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %6, align 4
  br label %130

105:                                              ; preds = %98
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %107)
          to label %109 unwind label %101

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = invoke noundef ptr @_ZNK9UIElement8GetChildEi(ptr noundef nonnull align 8 dereferenceable(144) %110, i32 noundef %111)
          to label %113 unwind label %126

113:                                              ; preds = %109
  %114 = invoke noundef i32 @_ZNK9UIElement8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(144) %112)
          to label %115 unwind label %126

115:                                              ; preds = %113
  store i32 %114, ptr %15, align 4, !tbaa !9
  %116 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %108, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %117 unwind label %126

117:                                              ; preds = %115
  %118 = load i32, ptr %116, align 4, !tbaa !9
  %119 = load i32, ptr %14, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %120)
          to label %122 unwind label %126

122:                                              ; preds = %117
  store i32 %118, ptr %121, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %14, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %14, align 4, !tbaa !9
  br label %94, !llvm.loop !13

126:                                              ; preds = %117, %115, %113, %109
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %5, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %130

130:                                              ; preds = %126, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %151

131:                                              ; preds = %100
  br label %147

132:                                              ; preds = %64
  %133 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0)
          to label %134 unwind label %85

134:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = invoke noundef i32 @_ZNK9UIElement8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(144) %135)
          to label %137 unwind label %143

137:                                              ; preds = %134
  store i32 %136, ptr %16, align 4, !tbaa !9
  %138 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %133, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %139 unwind label %143

139:                                              ; preds = %137
  %140 = load i32, ptr %138, align 4, !tbaa !9
  %141 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0)
          to label %142 unwind label %143

142:                                              ; preds = %139
  store i32 %140, ptr %141, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %147

143:                                              ; preds = %139, %137, %134
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %5, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %151

147:                                              ; preds = %142, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %148

148:                                              ; preds = %147
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds ptr, ptr %149, i32 1
  store ptr %150, ptr %8, align 8, !tbaa !5
  br label %33

151:                                              ; preds = %143, %130, %89, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %152

152:                                              ; preds = %151, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %153

153:                                              ; preds = %152, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %154

154:                                              ; preds = %153, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %155

155:                                              ; preds = %154, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %237

156:                                              ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %157 = load ptr, ptr %2, align 8, !tbaa !5
  %158 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9UIElement11GetChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %157)
          to label %159 unwind label %171

159:                                              ; preds = %156
  store ptr %158, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %160 = load ptr, ptr %17, align 8, !tbaa !5
  %161 = invoke noundef ptr @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %160)
          to label %162 unwind label %175

162:                                              ; preds = %159
  store ptr %161, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = invoke noundef ptr @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %163)
          to label %165 unwind label %179

165:                                              ; preds = %162
  store ptr %164, ptr %19, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %229, %165
  %167 = load ptr, ptr %18, align 8, !tbaa !5
  %168 = load ptr, ptr %19, align 8, !tbaa !5
  %169 = icmp ne ptr %167, %168
  br i1 %169, label %183, label %170

170:                                              ; preds = %166
  store i32 7, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %236

171:                                              ; preds = %156
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %5, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %6, align 4
  br label %235

175:                                              ; preds = %159
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %5, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %6, align 4
  br label %234

179:                                              ; preds = %162
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %5, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %6, align 4
  br label %233

183:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  store ptr %185, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = invoke noundef ptr @_ZN3JPH11DynamicCastI17UIHorizontalStack9UIElementEEPT_PT0_(ptr noundef %186)
          to label %188 unwind label %199

188:                                              ; preds = %183
  store ptr %187, ptr %21, align 8, !tbaa !5
  %189 = load ptr, ptr %21, align 8, !tbaa !5
  %190 = icmp ne ptr %189, null
  br i1 %190, label %191, label %222

191:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %218, %191
  %193 = load i32, ptr %22, align 4, !tbaa !9
  %194 = load ptr, ptr %21, align 8, !tbaa !5
  %195 = invoke noundef i32 @_ZNK9UIElement14GetNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %194)
          to label %196 unwind label %203

196:                                              ; preds = %192
  %197 = icmp slt i32 %193, %195
  br i1 %197, label %207, label %198

198:                                              ; preds = %196
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %221

199:                                              ; preds = %225, %222, %183
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %5, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %6, align 4
  br label %232

203:                                              ; preds = %215, %211, %207, %192
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %5, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %232

207:                                              ; preds = %196
  %208 = load ptr, ptr %21, align 8, !tbaa !5
  %209 = load i32, ptr %22, align 4, !tbaa !9
  %210 = invoke noundef ptr @_ZNK9UIElement8GetChildEi(ptr noundef nonnull align 8 dereferenceable(144) %208, i32 noundef %209)
          to label %211 unwind label %203

211:                                              ; preds = %207
  %212 = load i32, ptr %22, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %213)
          to label %215 unwind label %203

215:                                              ; preds = %211
  %216 = load i32, ptr %214, align 4, !tbaa !9
  invoke void @_ZN9UIElement8SetWidthEiNS_6EUnitsE(ptr noundef nonnull align 8 dereferenceable(144) %210, i32 noundef %216, i32 noundef 0)
          to label %217 unwind label %203

217:                                              ; preds = %215
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %22, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %22, align 4, !tbaa !9
  br label %192, !llvm.loop !15

221:                                              ; preds = %198
  br label %228

222:                                              ; preds = %188
  %223 = load ptr, ptr %20, align 8, !tbaa !5
  %224 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0)
          to label %225 unwind label %199

225:                                              ; preds = %222
  %226 = load i32, ptr %224, align 4, !tbaa !9
  invoke void @_ZN9UIElement8SetWidthEiNS_6EUnitsE(ptr noundef nonnull align 8 dereferenceable(144) %223, i32 noundef %226, i32 noundef 0)
          to label %227 unwind label %199

227:                                              ; preds = %225
  br label %228

228:                                              ; preds = %227, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %229

229:                                              ; preds = %228
  %230 = load ptr, ptr %18, align 8, !tbaa !5
  %231 = getelementptr inbounds ptr, ptr %230, i32 1
  store ptr %231, ptr %18, align 8, !tbaa !5
  br label %166

232:                                              ; preds = %203, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %233

233:                                              ; preds = %232, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %234

234:                                              ; preds = %233, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %235

235:                                              ; preds = %234, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %237

236:                                              ; preds = %170
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  ret void

237:                                              ; preds = %235, %155, %38
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #5
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %5, align 8
  %240 = load i32, ptr %6, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH11DynamicCastI17UIHorizontalStack9UIElementEEPT_PT0_(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9UIElement14GetNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(144)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9UIElement8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(144)) #1 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint 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 #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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Array.5" = type { i64, i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17UIHorizontalStack18sUniformChildWidthEP9UIElement(ptr noundef %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Array.5", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %7 unwind label %14

7:                                                ; preds = %1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  %8 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9UIElement11GetChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %9 = call noundef ptr @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %10 = call noundef ptr @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %.not58 = icmp eq ptr %9, %10
  br i1 %.not58, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.loopexit57, %7
  %11 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9UIElement11GetChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %0)
  %12 = call noundef ptr @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %13 = call noundef ptr @_ZNK3JPH5ArrayIP9UIElementNS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11)
  %.not4860 = icmp eq ptr %12, %13
  br i1 %.not4860, label %._crit_edge64, label %.lr.ph63

14:                                               ; preds = %1
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  br label %97

.lr.ph:                                           ; preds = %7, %.loopexit57
  %.04359 = phi ptr [ %72, %.loopexit57 ], [ %9, %7 ]
  %16 = load ptr, ptr %.04359, align 8, !tbaa !9
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %17, i64 56
  %19 = load ptr, ptr %18, align 8
  invoke void %19(ptr noundef nonnull align 8 dereferenceable(144) %16)
          to label %20 unwind label %34

20:                                               ; preds = %.lr.ph
  %21 = invoke noundef ptr @_ZN3JPH11DynamicCastI17UIHorizontalStack9UIElementEEPT_PT0_(ptr noundef nonnull %16)
          to label %22 unwind label %36

22:                                               ; preds = %20
  %.not51 = icmp eq ptr %21, null
  br i1 %.not51, label %61, label %23

23:                                               ; preds = %22
  %24 = invoke noundef i32 @_ZNK9UIElement14GetNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %21)
          to label %25 unwind label %36

25:                                               ; preds = %23
  %26 = call noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %27 = trunc i64 %26 to i32
  %28 = icmp sgt i32 %24, %27
  br i1 %28, label %29, label %.preheader69

.preheader69:                                     ; preds = %33, %25
  br label %40

29:                                               ; preds = %25
  %30 = invoke noundef i32 @_ZNK9UIElement14GetNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %21)
          to label %31 unwind label %36

31:                                               ; preds = %29
  %32 = sext i32 %30 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  invoke void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %32, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %33 unwind label %38

33:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %.preheader69

34:                                               ; preds = %.lr.ph
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %97

36:                                               ; preds = %61, %29, %23, %20
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %97

38:                                               ; preds = %31
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %97

40:                                               ; preds = %.preheader69, %58
  %indvars.iv = phi i64 [ %indvars.iv.next, %58 ], [ 0, %.preheader69 ]
  %41 = invoke noundef i32 @_ZNK9UIElement14GetNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %21)
          to label %42 unwind label %45

42:                                               ; preds = %40
  %43 = sext i32 %41 to i64
  %44 = icmp slt i64 %indvars.iv, %43
  br i1 %44, label %47, label %.loopexit57

45:                                               ; preds = %47, %40
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %97

47:                                               ; preds = %42
  %48 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv)
          to label %49 unwind label %45

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %50 = trunc nuw nsw i64 %indvars.iv to i32
  %51 = invoke noundef ptr @_ZNK9UIElement8GetChildEi(ptr noundef nonnull align 8 dereferenceable(144) %21, i32 noundef %50)
          to label %52 unwind label %59

52:                                               ; preds = %49
  %53 = invoke noundef i32 @_ZNK9UIElement8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(144) %51)
          to label %54 unwind label %59

54:                                               ; preds = %52
  store i32 %53, ptr %5, align 4, !tbaa !5
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv)
          to label %58 unwind label %59

58:                                               ; preds = %54
  store i32 %56, ptr %57, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %40, !llvm.loop !13

59:                                               ; preds = %54, %52, %49
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %97

61:                                               ; preds = %22
  %62 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0)
          to label %63 unwind label %36

63:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %64 = invoke noundef i32 @_ZNK9UIElement8GetWidthEv(ptr noundef nonnull align 8 dereferenceable(144) %16)
          to label %65 unwind label %70

65:                                               ; preds = %63
  store i32 %64, ptr %6, align 4, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %62, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0)
          to label %69 unwind label %70

69:                                               ; preds = %65
  store i32 %67, ptr %68, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %.loopexit57

70:                                               ; preds = %65, %63
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  br label %97

.loopexit57:                                      ; preds = %42, %69
  %72 = getelementptr inbounds i8, ptr %.04359, i64 8
  %.not = icmp eq ptr %72, %10
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge64:                                    ; preds = %.loopexit, %._crit_edge
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  ret void

.lr.ph63:                                         ; preds = %._crit_edge, %.loopexit
  %.04461 = phi ptr [ %96, %.loopexit ], [ %12, %._crit_edge ]
  %73 = load ptr, ptr %.04461, align 8, !tbaa !9
  %74 = invoke noundef ptr @_ZN3JPH11DynamicCastI17UIHorizontalStack9UIElementEEPT_PT0_(ptr noundef %73)
          to label %75 unwind label %80

75:                                               ; preds = %.lr.ph63
  %.not49 = icmp eq ptr %74, null
  br i1 %.not49, label %92, label %.preheader

.preheader:                                       ; preds = %75, %91
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %91 ], [ 0, %75 ]
  %76 = invoke noundef i32 @_ZNK9UIElement14GetNumChildrenEv(ptr noundef nonnull align 8 dereferenceable(144) %74)
          to label %77 unwind label %82

77:                                               ; preds = %.preheader
  %78 = sext i32 %76 to i64
  %79 = icmp slt i64 %indvars.iv66, %78
  br i1 %79, label %84, label %.loopexit

80:                                               ; preds = %94, %92, %.lr.ph63
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %97

82:                                               ; preds = %89, %87, %84, %.preheader
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %97

84:                                               ; preds = %77
  %85 = trunc nuw nsw i64 %indvars.iv66 to i32
  %86 = invoke noundef ptr @_ZNK9UIElement8GetChildEi(ptr noundef nonnull align 8 dereferenceable(144) %74, i32 noundef %85)
          to label %87 unwind label %82

87:                                               ; preds = %84
  %88 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv66)
          to label %89 unwind label %82

89:                                               ; preds = %87
  %90 = load i32, ptr %88, align 4, !tbaa !5
  invoke void @_ZN9UIElement8SetWidthEiNS_6EUnitsE(ptr noundef nonnull align 8 dereferenceable(144) %86, i32 noundef %90, i32 noundef 0)
          to label %91 unwind label %82

91:                                               ; preds = %89
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  br label %.preheader, !llvm.loop !15

92:                                               ; preds = %75
  %93 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0)
          to label %94 unwind label %80

94:                                               ; preds = %92
  %95 = load i32, ptr %93, align 4, !tbaa !5
  invoke void @_ZN9UIElement8SetWidthEiNS_6EUnitsE(ptr noundef nonnull align 8 dereferenceable(144) %73, i32 noundef %95, i32 noundef 0)
          to label %.loopexit unwind label %80

.loopexit:                                        ; preds = %77, %94
  %96 = getelementptr inbounds i8, ptr %.04461, i64 8
  %.not48 = icmp eq ptr %96, %13
  br i1 %.not48, label %._crit_edge64, label %.lr.ph63

97:                                               ; preds = %80, %82, %34, %45, %59, %70, %38, %36, %14
  %.pn52.pn.pn.pn = phi { ptr, i32 } [ %15, %14 ], [ %35, %34 ], [ %39, %38 ], [ %37, %36 ], [ %71, %70 ], [ %60, %59 ], [ %46, %45 ], [ %83, %82 ], [ %81, %80 ]
  call void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn52.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEE6resizeEmRKi(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH11DynamicCastI17UIHorizontalStack9UIElementEEPT_PT0_(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK3JPH5ArrayIiNS_12STLAllocatorIiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayIiNS_12STLAllocatorIiEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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


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