; LLVM IR from mitdbg/deneva :: benchmarks/pps_query.ll (ZN8PPSQuery12participantsEP7MessageP8Workload)

; 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.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%class.PPSClientQueryMessage = type <{ %class.ClientQueryMessage, i64, i64, i64, i64, %class.Array, i8, [7 x i8] }>
%class.ClientQueryMessage = type { %class.Message, i64, i64, i64, i64, %class.Array }
%class.Message = type { ptr, i32, i64, i64, i64, i64, i64, i64, double, double, double, double, double, double, double }
%class.Array = type { ptr, i64, i64 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@g_node_cnt = external global i32, align 4
@__PRETTY_FUNCTION__._ZN8PPSQuery12participantsEP7MessageP8Workload = external hidden unnamed_addr constant [72 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; 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 @_ZN8PPSQuery12participantsEP7MessageP8Workload(ptr dead_on_unwind noalias writable sret(%"class.std::set") align 8 %0, ptr noundef %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  store i1 false, ptr %7, align 1
  call void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %29, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !9
  switch i64 %32, label %274 [
    i64 1, label %33
    i64 3, label %52
    i64 2, label %67
    i64 4, label %82
    i64 5, label %136
    i64 6, label %190
    i64 7, label %244
    i64 8, label %259
  ]

33:                                               ; preds = %3
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %34, i32 0, i32 2
  %36 = load i64, ptr %35, align 8, !tbaa !18
  %37 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %36)
          to label %38 unwind label %48

38:                                               ; preds = %33
  %39 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %40 = zext i32 %39 to i64
  %41 = urem i64 %37, %40
  store i64 %41, ptr %9, align 8, !tbaa !21
  %42 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %43 unwind label %48

43:                                               ; preds = %38
  %44 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 0
  %45 = extractvalue { ptr, i8 } %42, 0
  store ptr %45, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 1
  %47 = extractvalue { ptr, i8 } %42, 1
  store i8 %47, ptr %46, align 8
  br label %275

48:                                               ; preds = %264, %259, %249, %244, %195, %190, %141, %136, %87, %82, %72, %67, %57, %52, %38, %33
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %10, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %11, align 4
  br label %277

52:                                               ; preds = %3
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %53, i32 0, i32 3
  %55 = load i64, ptr %54, align 8, !tbaa !22
  %56 = invoke noundef i64 @_Z21products_to_partitionm(i64 noundef %55)
          to label %57 unwind label %48

57:                                               ; preds = %52
  %58 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %59 = zext i32 %58 to i64
  %60 = urem i64 %56, %59
  store i64 %60, ptr %9, align 8, !tbaa !21
  %61 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %62 unwind label %48

62:                                               ; preds = %57
  %63 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 0
  %64 = extractvalue { ptr, i8 } %61, 0
  store ptr %64, ptr %63, align 8
  %65 = getelementptr inbounds { ptr, i8 }, ptr %13, i32 0, i32 1
  %66 = extractvalue { ptr, i8 } %61, 1
  store i8 %66, ptr %65, align 8
  br label %275

67:                                               ; preds = %3
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %68, i32 0, i32 4
  %70 = load i64, ptr %69, align 8, !tbaa !23
  %71 = invoke noundef i64 @_Z22suppliers_to_partitionm(i64 noundef %70)
          to label %72 unwind label %48

72:                                               ; preds = %67
  %73 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %74 = zext i32 %73 to i64
  %75 = urem i64 %71, %74
  store i64 %75, ptr %9, align 8, !tbaa !21
  %76 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %77 unwind label %48

77:                                               ; preds = %72
  %78 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %79 = extractvalue { ptr, i8 } %76, 0
  store ptr %79, ptr %78, align 8
  %80 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %81 = extractvalue { ptr, i8 } %76, 1
  store i8 %81, ptr %80, align 8
  br label %275

82:                                               ; preds = %3
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %83, i32 0, i32 4
  %85 = load i64, ptr %84, align 8, !tbaa !23
  %86 = invoke noundef i64 @_Z22suppliers_to_partitionm(i64 noundef %85)
          to label %87 unwind label %48

87:                                               ; preds = %82
  %88 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %89 = zext i32 %88 to i64
  %90 = urem i64 %86, %89
  store i64 %90, ptr %9, align 8, !tbaa !21
  %91 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %92 unwind label %48

92:                                               ; preds = %87
  %93 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 0
  %94 = extractvalue { ptr, i8 } %91, 0
  store ptr %94, ptr %93, align 8
  %95 = getelementptr inbounds { ptr, i8 }, ptr %15, i32 0, i32 1
  %96 = extractvalue { ptr, i8 } %91, 1
  store i8 %96, ptr %95, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !21
  br label %97

97:                                               ; preds = %127, %92
  %98 = load i64, ptr %16, align 8, !tbaa !21
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %99, i32 0, i32 5
  %101 = invoke noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %100)
          to label %102 unwind label %105

102:                                              ; preds = %97
  %103 = icmp ult i64 %98, %101
  br i1 %103, label %109, label %104

104:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %135

105:                                              ; preds = %97
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %10, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %11, align 4
  br label %134

109:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %110, i32 0, i32 5
  %112 = load i64, ptr %16, align 8, !tbaa !21
  %113 = invoke noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %112)
          to label %114 unwind label %130

114:                                              ; preds = %109
  store i64 %113, ptr %17, align 8, !tbaa !21
  %115 = load i64, ptr %17, align 8, !tbaa !21
  %116 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %115)
          to label %117 unwind label %130

117:                                              ; preds = %114
  %118 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %119 = zext i32 %118 to i64
  %120 = urem i64 %116, %119
  store i64 %120, ptr %9, align 8, !tbaa !21
  %121 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %122 unwind label %130

122:                                              ; preds = %117
  %123 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 0
  %124 = extractvalue { ptr, i8 } %121, 0
  store ptr %124, ptr %123, align 8
  %125 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 1
  %126 = extractvalue { ptr, i8 } %121, 1
  store i8 %126, ptr %125, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %127

127:                                              ; preds = %122
  %128 = load i64, ptr %16, align 8, !tbaa !21
  %129 = add i64 %128, 1
  store i64 %129, ptr %16, align 8, !tbaa !21
  br label %97, !llvm.loop !24

130:                                              ; preds = %117, %114, %109
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %10, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %134

134:                                              ; preds = %130, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %277

135:                                              ; preds = %104
  br label %275

136:                                              ; preds = %3
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %137, i32 0, i32 3
  %139 = load i64, ptr %138, align 8, !tbaa !22
  %140 = invoke noundef i64 @_Z21products_to_partitionm(i64 noundef %139)
          to label %141 unwind label %48

141:                                              ; preds = %136
  %142 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %143 = zext i32 %142 to i64
  %144 = urem i64 %140, %143
  store i64 %144, ptr %9, align 8, !tbaa !21
  %145 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %146 unwind label %48

146:                                              ; preds = %141
  %147 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 0
  %148 = extractvalue { ptr, i8 } %145, 0
  store ptr %148, ptr %147, align 8
  %149 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 1
  %150 = extractvalue { ptr, i8 } %145, 1
  store i8 %150, ptr %149, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !21
  br label %151

151:                                              ; preds = %181, %146
  %152 = load i64, ptr %20, align 8, !tbaa !21
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %153, i32 0, i32 5
  %155 = invoke noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %154)
          to label %156 unwind label %159

156:                                              ; preds = %151
  %157 = icmp ult i64 %152, %155
  br i1 %157, label %163, label %158

158:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %189

159:                                              ; preds = %151
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %10, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %11, align 4
  br label %188

163:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %164, i32 0, i32 5
  %166 = load i64, ptr %20, align 8, !tbaa !21
  %167 = invoke noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %166)
          to label %168 unwind label %184

168:                                              ; preds = %163
  store i64 %167, ptr %21, align 8, !tbaa !21
  %169 = load i64, ptr %21, align 8, !tbaa !21
  %170 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %169)
          to label %171 unwind label %184

171:                                              ; preds = %168
  %172 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %173 = zext i32 %172 to i64
  %174 = urem i64 %170, %173
  store i64 %174, ptr %9, align 8, !tbaa !21
  %175 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %176 unwind label %184

176:                                              ; preds = %171
  %177 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 0
  %178 = extractvalue { ptr, i8 } %175, 0
  store ptr %178, ptr %177, align 8
  %179 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 1
  %180 = extractvalue { ptr, i8 } %175, 1
  store i8 %180, ptr %179, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %181

181:                                              ; preds = %176
  %182 = load i64, ptr %20, align 8, !tbaa !21
  %183 = add i64 %182, 1
  store i64 %183, ptr %20, align 8, !tbaa !21
  br label %151, !llvm.loop !26

184:                                              ; preds = %171, %168, %163
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %10, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %188

188:                                              ; preds = %184, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %277

189:                                              ; preds = %158
  br label %275

190:                                              ; preds = %3
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %191, i32 0, i32 3
  %193 = load i64, ptr %192, align 8, !tbaa !22
  %194 = invoke noundef i64 @_Z21products_to_partitionm(i64 noundef %193)
          to label %195 unwind label %48

195:                                              ; preds = %190
  %196 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %197 = zext i32 %196 to i64
  %198 = urem i64 %194, %197
  store i64 %198, ptr %9, align 8, !tbaa !21
  %199 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %200 unwind label %48

200:                                              ; preds = %195
  %201 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 0
  %202 = extractvalue { ptr, i8 } %199, 0
  store ptr %202, ptr %201, align 8
  %203 = getelementptr inbounds { ptr, i8 }, ptr %23, i32 0, i32 1
  %204 = extractvalue { ptr, i8 } %199, 1
  store i8 %204, ptr %203, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store i64 0, ptr %24, align 8, !tbaa !21
  br label %205

205:                                              ; preds = %235, %200
  %206 = load i64, ptr %24, align 8, !tbaa !21
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %207, i32 0, i32 5
  %209 = invoke noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %208)
          to label %210 unwind label %213

210:                                              ; preds = %205
  %211 = icmp ult i64 %206, %209
  br i1 %211, label %217, label %212

212:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %243

213:                                              ; preds = %205
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %10, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %11, align 4
  br label %242

217:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %218, i32 0, i32 5
  %220 = load i64, ptr %24, align 8, !tbaa !21
  %221 = invoke noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %219, i64 noundef %220)
          to label %222 unwind label %238

222:                                              ; preds = %217
  store i64 %221, ptr %25, align 8, !tbaa !21
  %223 = load i64, ptr %25, align 8, !tbaa !21
  %224 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %223)
          to label %225 unwind label %238

225:                                              ; preds = %222
  %226 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %227 = zext i32 %226 to i64
  %228 = urem i64 %224, %227
  store i64 %228, ptr %9, align 8, !tbaa !21
  %229 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %230 unwind label %238

230:                                              ; preds = %225
  %231 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 0
  %232 = extractvalue { ptr, i8 } %229, 0
  store ptr %232, ptr %231, align 8
  %233 = getelementptr inbounds { ptr, i8 }, ptr %26, i32 0, i32 1
  %234 = extractvalue { ptr, i8 } %229, 1
  store i8 %234, ptr %233, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %235

235:                                              ; preds = %230
  %236 = load i64, ptr %24, align 8, !tbaa !21
  %237 = add i64 %236, 1
  store i64 %237, ptr %24, align 8, !tbaa !21
  br label %205, !llvm.loop !27

238:                                              ; preds = %225, %222, %217
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %10, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %242

242:                                              ; preds = %238, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %277

243:                                              ; preds = %212
  br label %275

244:                                              ; preds = %3
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %245, i32 0, i32 3
  %247 = load i64, ptr %246, align 8, !tbaa !22
  %248 = invoke noundef i64 @_Z21products_to_partitionm(i64 noundef %247)
          to label %249 unwind label %48

249:                                              ; preds = %244
  %250 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %251 = zext i32 %250 to i64
  %252 = urem i64 %248, %251
  store i64 %252, ptr %9, align 8, !tbaa !21
  %253 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %254 unwind label %48

254:                                              ; preds = %249
  %255 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 0
  %256 = extractvalue { ptr, i8 } %253, 0
  store ptr %256, ptr %255, align 8
  %257 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 1
  %258 = extractvalue { ptr, i8 } %253, 1
  store i8 %258, ptr %257, align 8
  br label %275

259:                                              ; preds = %3
  %260 = load ptr, ptr %8, align 8, !tbaa !5
  %261 = getelementptr inbounds %class.PPSClientQueryMessage, ptr %260, i32 0, i32 2
  %262 = load i64, ptr %261, align 8, !tbaa !18
  %263 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %262)
          to label %264 unwind label %48

264:                                              ; preds = %259
  %265 = load i32, ptr @g_node_cnt, align 4, !tbaa !19
  %266 = zext i32 %265 to i64
  %267 = urem i64 %263, %266
  store i64 %267, ptr %9, align 8, !tbaa !21
  %268 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %269 unwind label %48

269:                                              ; preds = %264
  %270 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 0
  %271 = extractvalue { ptr, i8 } %268, 0
  store ptr %271, ptr %270, align 8
  %272 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 1
  %273 = extractvalue { ptr, i8 } %268, 1
  store i8 %273, ptr %272, align 8
  br label %275

274:                                              ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 128, ptr noundef @__PRETTY_FUNCTION__._ZN8PPSQuery12participantsEP7MessageP8Workload) #6
  unreachable

275:                                              ; preds = %269, %254, %243, %189, %135, %77, %62, %43
  store i1 true, ptr %7, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %276 = load i1, ptr %7, align 1
  br i1 %276, label %279, label %278

277:                                              ; preds = %242, %188, %134, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  br label %280

278:                                              ; preds = %275
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  br label %279

279:                                              ; preds = %278, %275
  ret void

280:                                              ; preds = %277
  %281 = load ptr, ptr %10, align 8
  %282 = load i32, ptr %11, align 4
  %283 = insertvalue { ptr, i32 } poison, ptr %281, 0
  %284 = insertvalue { ptr, i32 } %283, i32 %282, 1
  resume { ptr, i32 } %284
}

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

declare noundef i64 @_Z18parts_to_partitionm(i64 noundef) #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

declare noundef i64 @_Z21products_to_partitionm(i64 noundef) #4

declare noundef i64 @_Z22suppliers_to_partitionm(i64 noundef) #4

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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, !14, i64 176}
!10 = !{!"_ZTS21PPSClientQueryMessage", !11, i64 0, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !16, i64 208, !17, i64 232}
!11 = !{!"_ZTS18ClientQueryMessage", !12, i64 0, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !16, i64 152}
!12 = !{!"_ZTS7Message", !13, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112}
!13 = !{!"_ZTS10RemReqType", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTS5ArrayImE", !6, i64 0, !14, i64 8, !14, i64 16}
!17 = !{!"bool", !7, i64 0}
!18 = !{!10, !14, i64 184}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!14, !14, i64 0}
!22 = !{!10, !14, i64 192}
!23 = !{!10, !14, i64 200}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}


; 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.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, unsigned long, std::_Identity<unsigned long>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@g_node_cnt = external local_unnamed_addr global i32, align 4
@__PRETTY_FUNCTION__._ZN8PPSQuery12participantsEP7MessageP8Workload = external hidden unnamed_addr constant [72 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; 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 @_ZN8PPSQuery12participantsEP7MessageP8Workload(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::set") align 8 %0, ptr noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i64, align 8
  tail call void @_ZNSt3setImSt4lessImESaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %5 = getelementptr inbounds i8, ptr %1, i64 176
  %6 = load i64, ptr %5, align 8, !tbaa !5
  switch i64 %6, label %122 [
    i64 1, label %7
    i64 3, label %17
    i64 2, label %25
    i64 4, label %33
    i64 5, label %57
    i64 6, label %81
    i64 7, label %105
    i64 8, label %113
  ]

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %1, i64 184
  %9 = load i64, ptr %8, align 8, !tbaa !17
  %10 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %9)
          to label %11 unwind label %15

11:                                               ; preds = %7
  %12 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %13 = zext i32 %12 to i64
  %14 = urem i64 %10, %13
  store i64 %14, ptr %4, align 8, !tbaa !20
  br label %.invoke

15:                                               ; preds = %.invoke, %113, %105, %85, %81, %61, %57, %37, %33, %25, %17, %7
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %123

17:                                               ; preds = %3
  %18 = getelementptr inbounds i8, ptr %1, i64 192
  %19 = load i64, ptr %18, align 8, !tbaa !21
  %20 = invoke noundef i64 @_Z21products_to_partitionm(i64 noundef %19)
          to label %21 unwind label %15

21:                                               ; preds = %17
  %22 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %23 = zext i32 %22 to i64
  %24 = urem i64 %20, %23
  store i64 %24, ptr %4, align 8, !tbaa !20
  br label %.invoke

25:                                               ; preds = %3
  %26 = getelementptr inbounds i8, ptr %1, i64 200
  %27 = load i64, ptr %26, align 8, !tbaa !22
  %28 = invoke noundef i64 @_Z22suppliers_to_partitionm(i64 noundef %27)
          to label %29 unwind label %15

29:                                               ; preds = %25
  %30 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %31 = zext i32 %30 to i64
  %32 = urem i64 %28, %31
  store i64 %32, ptr %4, align 8, !tbaa !20
  br label %.invoke

33:                                               ; preds = %3
  %34 = getelementptr inbounds i8, ptr %1, i64 200
  %35 = load i64, ptr %34, align 8, !tbaa !22
  %36 = invoke noundef i64 @_Z22suppliers_to_partitionm(i64 noundef %35)
          to label %37 unwind label %15

37:                                               ; preds = %33
  %38 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %39 = zext i32 %38 to i64
  %40 = urem i64 %36, %39
  store i64 %40, ptr %4, align 8, !tbaa !20
  %41 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %.preheader unwind label %15

.preheader:                                       ; preds = %37
  %42 = getelementptr inbounds i8, ptr %1, i64 208
  %43 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %.not65 = icmp eq i64 %43, 0
  br i1 %.not65, label %.loopexit, label %.lr.ph63

.lr.ph63:                                         ; preds = %.preheader, %51
  %.05162 = phi i64 [ %52, %51 ], [ 0, %.preheader ]
  %44 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %.05162)
  %45 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %44)
          to label %46 unwind label %55

46:                                               ; preds = %.lr.ph63
  %47 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %48 = zext i32 %47 to i64
  %49 = urem i64 %45, %48
  store i64 %49, ptr %4, align 8, !tbaa !20
  %50 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %51 unwind label %55

51:                                               ; preds = %46
  %52 = add nuw i64 %.05162, 1
  %53 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %54 = icmp ult i64 %52, %53
  br i1 %54, label %.lr.ph63, label %.loopexit, !llvm.loop !23

55:                                               ; preds = %46, %.lr.ph63
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %123

57:                                               ; preds = %3
  %58 = getelementptr inbounds i8, ptr %1, i64 192
  %59 = load i64, ptr %58, align 8, !tbaa !21
  %60 = invoke noundef i64 @_Z21products_to_partitionm(i64 noundef %59)
          to label %61 unwind label %15

61:                                               ; preds = %57
  %62 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %63 = zext i32 %62 to i64
  %64 = urem i64 %60, %63
  store i64 %64, ptr %4, align 8, !tbaa !20
  %65 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %.preheader55 unwind label %15

.preheader55:                                     ; preds = %61
  %66 = getelementptr inbounds i8, ptr %1, i64 208
  %67 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66)
  %.not64 = icmp eq i64 %67, 0
  br i1 %.not64, label %.loopexit, label %.lr.ph61

.lr.ph61:                                         ; preds = %.preheader55, %75
  %.05260 = phi i64 [ %76, %75 ], [ 0, %.preheader55 ]
  %68 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %.05260)
  %69 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %68)
          to label %70 unwind label %79

70:                                               ; preds = %.lr.ph61
  %71 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %72 = zext i32 %71 to i64
  %73 = urem i64 %69, %72
  store i64 %73, ptr %4, align 8, !tbaa !20
  %74 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %75 unwind label %79

75:                                               ; preds = %70
  %76 = add nuw i64 %.05260, 1
  %77 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %66)
  %78 = icmp ult i64 %76, %77
  br i1 %78, label %.lr.ph61, label %.loopexit, !llvm.loop !25

79:                                               ; preds = %70, %.lr.ph61
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %123

81:                                               ; preds = %3
  %82 = getelementptr inbounds i8, ptr %1, i64 192
  %83 = load i64, ptr %82, align 8, !tbaa !21
  %84 = invoke noundef i64 @_Z21products_to_partitionm(i64 noundef %83)
          to label %85 unwind label %15

85:                                               ; preds = %81
  %86 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %87 = zext i32 %86 to i64
  %88 = urem i64 %84, %87
  store i64 %88, ptr %4, align 8, !tbaa !20
  %89 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %.preheader57 unwind label %15

.preheader57:                                     ; preds = %85
  %90 = getelementptr inbounds i8, ptr %1, i64 208
  %91 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90)
  %.not = icmp eq i64 %91, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader57, %99
  %.05359 = phi i64 [ %100, %99 ], [ 0, %.preheader57 ]
  %92 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %.05359)
  %93 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %92)
          to label %94 unwind label %103

94:                                               ; preds = %.lr.ph
  %95 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %96 = zext i32 %95 to i64
  %97 = urem i64 %93, %96
  store i64 %97, ptr %4, align 8, !tbaa !20
  %98 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %99 unwind label %103

99:                                               ; preds = %94
  %100 = add nuw i64 %.05359, 1
  %101 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90)
  %102 = icmp ult i64 %100, %101
  br i1 %102, label %.lr.ph, label %.loopexit, !llvm.loop !26

103:                                              ; preds = %94, %.lr.ph
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %123

105:                                              ; preds = %3
  %106 = getelementptr inbounds i8, ptr %1, i64 192
  %107 = load i64, ptr %106, align 8, !tbaa !21
  %108 = invoke noundef i64 @_Z21products_to_partitionm(i64 noundef %107)
          to label %109 unwind label %15

109:                                              ; preds = %105
  %110 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %111 = zext i32 %110 to i64
  %112 = urem i64 %108, %111
  store i64 %112, ptr %4, align 8, !tbaa !20
  br label %.invoke

113:                                              ; preds = %3
  %114 = getelementptr inbounds i8, ptr %1, i64 184
  %115 = load i64, ptr %114, align 8, !tbaa !17
  %116 = invoke noundef i64 @_Z18parts_to_partitionm(i64 noundef %115)
          to label %117 unwind label %15

117:                                              ; preds = %113
  %118 = load i32, ptr @g_node_cnt, align 4, !tbaa !18
  %119 = zext i32 %118 to i64
  %120 = urem i64 %116, %119
  store i64 %120, ptr %4, align 8, !tbaa !20
  br label %.invoke

.invoke:                                          ; preds = %11, %21, %29, %109, %117
  %121 = invoke { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %.loopexit unwind label %15

122:                                              ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 128, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8PPSQuery12participantsEP7MessageP8Workload) #6
  unreachable

.loopexit:                                        ; preds = %99, %75, %51, %.invoke, %.preheader57, %.preheader55, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  ret void

123:                                              ; preds = %103, %79, %55, %15
  %.pn = phi { ptr, i32 } [ %16, %15 ], [ %104, %103 ], [ %80, %79 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZNSt3setImSt4lessImESaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  resume { ptr, i32 } %.pn
}

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

declare noundef i64 @_Z18parts_to_partitionm(i64 noundef) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setImSt4lessImESaImEE6insertERKm(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

declare noundef i64 @_Z21products_to_partitionm(i64 noundef) local_unnamed_addr #4

declare noundef i64 @_Z22suppliers_to_partitionm(i64 noundef) local_unnamed_addr #4

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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, !12, i64 176}
!6 = !{!"_ZTS21PPSClientQueryMessage", !7, i64 0, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !14, i64 208, !16, i64 232}
!7 = !{!"_ZTS18ClientQueryMessage", !8, i64 0, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !14, i64 152}
!8 = !{!"_ZTS7Message", !9, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112}
!9 = !{!"_ZTS10RemReqType", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!"_ZTS5ArrayImE", !15, i64 0, !12, i64 8, !12, i64 16}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"bool", !10, i64 0}
!17 = !{!6, !12, i64 184}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !10, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!6, !12, i64 192}
!22 = !{!6, !12, i64 200}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


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