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

; 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.BaseQuery = type { ptr, i64, %class.Array, %class.Array, %class.Array, %class.Array }
%class.Array = type { ptr, i64, i64 }
%class.PPSQuery = type { %class.BaseQuery, i32, i64, i64, i64, i64, %class.Array }

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@g_node_cnt = external global i32, align 4
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 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

declare noundef i64 @_Z18parts_to_partitionm(i64 noundef) #2

declare noundef i64 @_Z21products_to_partitionm(i64 noundef) #2

declare noundef i64 @_Z22suppliers_to_partitionm(i64 noundef) #2

; 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 @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN8PPSQuery16get_participantsEP8Workload(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 0, ptr %6, align 8, !tbaa !9
  %13 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %14 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %2
  br label %19

17:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 407, ptr noundef @__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload) #6
  unreachable

18:                                               ; No predecessors!
  br label %19

19:                                               ; preds = %18, %16
  %20 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 4
  %21 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  br label %26

24:                                               ; preds = %19
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 408, ptr noundef @__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload) #6
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %27

27:                                               ; preds = %36, %26
  %28 = load i64, ptr %7, align 8, !tbaa !9
  %29 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %30 = zext i32 %29 to i64
  %31 = icmp ult i64 %28, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %39

33:                                               ; preds = %27
  %34 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef 0)
  %35 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 4
  call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef 0)
  br label %36

36:                                               ; preds = %33
  %37 = load i64, ptr %7, align 8, !tbaa !9
  %38 = add i64 %37, 1
  store i64 %38, ptr %7, align 8, !tbaa !9
  br label %27, !llvm.loop !13

39:                                               ; preds = %32
  %40 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %41 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %42 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %43 = zext i32 %42 to i64
  %44 = icmp eq i64 %41, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %39
  br label %48

46:                                               ; preds = %39
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 413, ptr noundef @__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload) #6
  unreachable

47:                                               ; No predecessors!
  br label %48

48:                                               ; preds = %47, %45
  %49 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 4
  %50 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
  %51 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %52 = zext i32 %51 to i64
  %53 = icmp eq i64 %50, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %48
  br label %57

55:                                               ; preds = %48
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 414, ptr noundef @__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload) #6
  unreachable

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %58 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 1
  %59 = load i32, ptr %58, align 8, !tbaa !15
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %72

61:                                               ; preds = %57
  %62 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 3
  %63 = load i64, ptr %62, align 8, !tbaa !20
  %64 = call noundef i64 @_Z18parts_to_partitionm(i64 noundef %63)
  %65 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %66 = zext i32 %65 to i64
  %67 = urem i64 %64, %66
  store i64 %67, ptr %8, align 8, !tbaa !9
  %68 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %69 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %69, i64 noundef 1)
  %70 = load i64, ptr %5, align 8, !tbaa !9
  %71 = add i64 %70, 1
  store i64 %71, ptr %5, align 8, !tbaa !9
  br label %72

72:                                               ; preds = %61, %57
  %73 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !15
  %75 = icmp eq i32 %74, 3
  br i1 %75, label %76, label %87

76:                                               ; preds = %72
  %77 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 5
  %78 = load i64, ptr %77, align 8, !tbaa !21
  %79 = call noundef i64 @_Z21products_to_partitionm(i64 noundef %78)
  %80 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %81 = zext i32 %80 to i64
  %82 = urem i64 %79, %81
  store i64 %82, ptr %8, align 8, !tbaa !9
  %83 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %84 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %84, i64 noundef 1)
  %85 = load i64, ptr %5, align 8, !tbaa !9
  %86 = add i64 %85, 1
  store i64 %86, ptr %5, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %76, %72
  %88 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 1
  %89 = load i32, ptr %88, align 8, !tbaa !15
  %90 = icmp eq i32 %89, 2
  br i1 %90, label %91, label %102

91:                                               ; preds = %87
  %92 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 4
  %93 = load i64, ptr %92, align 8, !tbaa !22
  %94 = call noundef i64 @_Z22suppliers_to_partitionm(i64 noundef %93)
  %95 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %96 = zext i32 %95 to i64
  %97 = urem i64 %94, %96
  store i64 %97, ptr %8, align 8, !tbaa !9
  %98 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %99 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %99, i64 noundef 1)
  %100 = load i64, ptr %5, align 8, !tbaa !9
  %101 = add i64 %100, 1
  store i64 %101, ptr %5, align 8, !tbaa !9
  br label %102

102:                                              ; preds = %91, %87
  %103 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 1
  %104 = load i32, ptr %103, align 8, !tbaa !15
  %105 = icmp eq i32 %104, 5
  br i1 %105, label %106, label %145

106:                                              ; preds = %102
  %107 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 5
  %108 = load i64, ptr %107, align 8, !tbaa !21
  %109 = call noundef i64 @_Z21products_to_partitionm(i64 noundef %108)
  %110 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %111 = zext i32 %110 to i64
  %112 = urem i64 %109, %111
  store i64 %112, ptr %8, align 8, !tbaa !9
  %113 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %114 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %114, i64 noundef 1)
  %115 = load i64, ptr %5, align 8, !tbaa !9
  %116 = add i64 %115, 1
  store i64 %116, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %141, %106
  %118 = load i64, ptr %9, align 8, !tbaa !9
  %119 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 6
  %120 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %119)
  %121 = icmp ult i64 %118, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %144

123:                                              ; preds = %117
  %124 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 6
  %125 = load i64, ptr %9, align 8, !tbaa !9
  %126 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %125)
  %127 = call noundef i64 @_Z18parts_to_partitionm(i64 noundef %126)
  %128 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %129 = zext i32 %128 to i64
  %130 = urem i64 %127, %129
  store i64 %130, ptr %8, align 8, !tbaa !9
  %131 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %132 = load i64, ptr %8, align 8, !tbaa !9
  %133 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %132)
  %134 = icmp eq i64 %133, 0
  br i1 %134, label %135, label %140

135:                                              ; preds = %123
  %136 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %137 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %137, i64 noundef 1)
  %138 = load i64, ptr %5, align 8, !tbaa !9
  %139 = add i64 %138, 1
  store i64 %139, ptr %5, align 8, !tbaa !9
  br label %140

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

141:                                              ; preds = %140
  %142 = load i64, ptr %9, align 8, !tbaa !9
  %143 = add i64 %142, 1
  store i64 %143, ptr %9, align 8, !tbaa !9
  br label %117, !llvm.loop !23

144:                                              ; preds = %122
  br label %145

145:                                              ; preds = %144, %102
  %146 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 1
  %147 = load i32, ptr %146, align 8, !tbaa !15
  %148 = icmp eq i32 %147, 4
  br i1 %148, label %149, label %188

149:                                              ; preds = %145
  %150 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 4
  %151 = load i64, ptr %150, align 8, !tbaa !22
  %152 = call noundef i64 @_Z22suppliers_to_partitionm(i64 noundef %151)
  %153 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %154 = zext i32 %153 to i64
  %155 = urem i64 %152, %154
  store i64 %155, ptr %8, align 8, !tbaa !9
  %156 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %157 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %157, i64 noundef 1)
  %158 = load i64, ptr %5, align 8, !tbaa !9
  %159 = add i64 %158, 1
  store i64 %159, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %160

160:                                              ; preds = %184, %149
  %161 = load i64, ptr %10, align 8, !tbaa !9
  %162 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 6
  %163 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %162)
  %164 = icmp ult i64 %161, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %187

166:                                              ; preds = %160
  %167 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 6
  %168 = load i64, ptr %10, align 8, !tbaa !9
  %169 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %168)
  %170 = call noundef i64 @_Z18parts_to_partitionm(i64 noundef %169)
  %171 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %172 = zext i32 %171 to i64
  %173 = urem i64 %170, %172
  store i64 %173, ptr %8, align 8, !tbaa !9
  %174 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %175 = load i64, ptr %8, align 8, !tbaa !9
  %176 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %175)
  %177 = icmp eq i64 %176, 0
  br i1 %177, label %178, label %183

178:                                              ; preds = %166
  %179 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %180 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %180, i64 noundef 1)
  %181 = load i64, ptr %5, align 8, !tbaa !9
  %182 = add i64 %181, 1
  store i64 %182, ptr %5, align 8, !tbaa !9
  br label %183

183:                                              ; preds = %178, %166
  br label %184

184:                                              ; preds = %183
  %185 = load i64, ptr %10, align 8, !tbaa !9
  %186 = add i64 %185, 1
  store i64 %186, ptr %10, align 8, !tbaa !9
  br label %160, !llvm.loop !24

187:                                              ; preds = %165
  br label %188

188:                                              ; preds = %187, %145
  %189 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 1
  %190 = load i32, ptr %189, align 8, !tbaa !15
  %191 = icmp eq i32 %190, 6
  br i1 %191, label %192, label %241

192:                                              ; preds = %188
  %193 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 5
  %194 = load i64, ptr %193, align 8, !tbaa !21
  %195 = call noundef i64 @_Z21products_to_partitionm(i64 noundef %194)
  %196 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %197 = zext i32 %196 to i64
  %198 = urem i64 %195, %197
  store i64 %198, ptr %8, align 8, !tbaa !9
  %199 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %200 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %200, i64 noundef 1)
  %201 = load i64, ptr %5, align 8, !tbaa !9
  %202 = add i64 %201, 1
  store i64 %202, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %203

203:                                              ; preds = %237, %192
  %204 = load i64, ptr %11, align 8, !tbaa !9
  %205 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 6
  %206 = call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %205)
  %207 = icmp ult i64 %204, %206
  br i1 %207, label %209, label %208

208:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %240

209:                                              ; preds = %203
  %210 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 6
  %211 = load i64, ptr %11, align 8, !tbaa !9
  %212 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %210, i64 noundef %211)
  %213 = call noundef i64 @_Z18parts_to_partitionm(i64 noundef %212)
  %214 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %215 = zext i32 %214 to i64
  %216 = urem i64 %213, %215
  store i64 %216, ptr %8, align 8, !tbaa !9
  %217 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %218 = load i64, ptr %8, align 8, !tbaa !9
  %219 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %217, i64 noundef %218)
  %220 = icmp eq i64 %219, 0
  br i1 %220, label %221, label %226

221:                                              ; preds = %209
  %222 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %223 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %222, i64 noundef %223, i64 noundef 1)
  %224 = load i64, ptr %5, align 8, !tbaa !9
  %225 = add i64 %224, 1
  store i64 %225, ptr %5, align 8, !tbaa !9
  br label %226

226:                                              ; preds = %221, %209
  %227 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 4
  %228 = load i64, ptr %8, align 8, !tbaa !9
  %229 = call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %227, i64 noundef %228)
  %230 = icmp eq i64 %229, 0
  br i1 %230, label %231, label %236

231:                                              ; preds = %226
  %232 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 4
  %233 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %232, i64 noundef %233, i64 noundef 1)
  %234 = load i64, ptr %6, align 8, !tbaa !9
  %235 = add i64 %234, 1
  store i64 %235, ptr %6, align 8, !tbaa !9
  br label %236

236:                                              ; preds = %231, %226
  br label %237

237:                                              ; preds = %236
  %238 = load i64, ptr %11, align 8, !tbaa !9
  %239 = add i64 %238, 1
  store i64 %239, ptr %11, align 8, !tbaa !9
  br label %203, !llvm.loop !25

240:                                              ; preds = %208
  br label %241

241:                                              ; preds = %240, %188
  %242 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 1
  %243 = load i32, ptr %242, align 8, !tbaa !15
  %244 = icmp eq i32 %243, 7
  br i1 %244, label %245, label %260

245:                                              ; preds = %241
  %246 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 5
  %247 = load i64, ptr %246, align 8, !tbaa !21
  %248 = call noundef i64 @_Z21products_to_partitionm(i64 noundef %247)
  %249 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %250 = zext i32 %249 to i64
  %251 = urem i64 %248, %250
  store i64 %251, ptr %8, align 8, !tbaa !9
  %252 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %253 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %252, i64 noundef %253, i64 noundef 1)
  %254 = load i64, ptr %5, align 8, !tbaa !9
  %255 = add i64 %254, 1
  store i64 %255, ptr %5, align 8, !tbaa !9
  %256 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 4
  %257 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %256, i64 noundef %257, i64 noundef 1)
  %258 = load i64, ptr %6, align 8, !tbaa !9
  %259 = add i64 %258, 1
  store i64 %259, ptr %6, align 8, !tbaa !9
  br label %260

260:                                              ; preds = %245, %241
  %261 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 1
  %262 = load i32, ptr %261, align 8, !tbaa !15
  %263 = icmp eq i32 %262, 8
  br i1 %263, label %264, label %279

264:                                              ; preds = %260
  %265 = getelementptr inbounds %class.PPSQuery, ptr %12, i32 0, i32 3
  %266 = load i64, ptr %265, align 8, !tbaa !20
  %267 = call noundef i64 @_Z18parts_to_partitionm(i64 noundef %266)
  %268 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %269 = zext i32 %268 to i64
  %270 = urem i64 %267, %269
  store i64 %270, ptr %8, align 8, !tbaa !9
  %271 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 5
  %272 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %271, i64 noundef %272, i64 noundef 1)
  %273 = load i64, ptr %5, align 8, !tbaa !9
  %274 = add i64 %273, 1
  store i64 %274, ptr %5, align 8, !tbaa !9
  %275 = getelementptr inbounds %class.BaseQuery, ptr %12, i32 0, i32 4
  %276 = load i64, ptr %8, align 8, !tbaa !9
  call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %275, i64 noundef %276, i64 noundef 1)
  %277 = load i64, ptr %6, align 8, !tbaa !9
  %278 = add i64 %277, 1
  store i64 %278, ptr %6, align 8, !tbaa !9
  br label %279

279:                                              ; preds = %264, %260
  %280 = load i64, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret i64 %280
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, i64 noundef) #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 = { "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 = { 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 #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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !19, i64 112}
!16 = !{!"_ZTS8PPSQuery", !17, i64 0, !19, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !18, i64 152}
!17 = !{!"_ZTS9BaseQuery", !10, i64 8, !18, i64 16, !18, i64 40, !18, i64 64, !18, i64 88}
!18 = !{!"_ZTS5ArrayImE", !6, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!"_ZTS10PPSTxnType", !7, i64 0}
!20 = !{!16, !10, i64 128}
!21 = !{!16, !10, i64 144}
!22 = !{!16, !10, i64 136}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !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"

@.str.1 = external hidden unnamed_addr constant [72 x i8], align 1
@g_node_cnt = external local_unnamed_addr global i32, align 4
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN8PPSQuery16get_participantsEP8Workload(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr nocapture noundef readnone %1) local_unnamed_addr #3 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 88
  %4 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %7, label %6

6:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 407, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload) #4
  unreachable

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  %9 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %10 = icmp eq i64 %9, 0
  br i1 %10, label %.preheader, label %12

.preheader:                                       ; preds = %7
  %11 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

12:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 408, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload) #4
  unreachable

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %13 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %14 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %15 = zext i32 %14 to i64
  %16 = icmp eq i64 %13, %15
  br i1 %16, label %22, label %21

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.04656 = phi i64 [ %17, %.lr.ph ], [ 0, %.preheader ]
  tail call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0)
  tail call void @_ZN5ArrayImE3addEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0)
  %17 = add nuw nsw i64 %.04656, 1
  %18 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %19 = zext i32 %18 to i64
  %20 = icmp ult i64 %17, %19
  br i1 %20, label %.lr.ph, label %._crit_edge, !llvm.loop !9

21:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 413, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload) #4
  unreachable

22:                                               ; preds = %._crit_edge
  %23 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %24 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %25 = zext i32 %24 to i64
  %26 = icmp eq i64 %23, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %22
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 414, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8PPSQuery16get_participantsEP8Workload) #4
  unreachable

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %0, i64 112
  %30 = load i32, ptr %29, align 8, !tbaa !11
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %32, label %39

32:                                               ; preds = %28
  %33 = getelementptr inbounds i8, ptr %0, i64 128
  %34 = load i64, ptr %33, align 8, !tbaa !18
  %35 = tail call noundef i64 @_Z18parts_to_partitionm(i64 noundef %34)
  %36 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %37 = zext i32 %36 to i64
  %38 = urem i64 %35, %37
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %38, i64 noundef 1)
  %.pr = load i32, ptr %29, align 8, !tbaa !11
  br label %39

39:                                               ; preds = %32, %28
  %40 = phi i32 [ %.pr, %32 ], [ %30, %28 ]
  %.048 = phi i64 [ 1, %32 ], [ 0, %28 ]
  %41 = icmp eq i32 %40, 3
  br i1 %41, label %42, label %50

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %0, i64 144
  %44 = load i64, ptr %43, align 8, !tbaa !19
  %45 = tail call noundef i64 @_Z21products_to_partitionm(i64 noundef %44)
  %46 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %47 = zext i32 %46 to i64
  %48 = urem i64 %45, %47
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %48, i64 noundef 1)
  %49 = add nuw nsw i64 %.048, 1
  %.pre = load i32, ptr %29, align 8, !tbaa !11
  br label %50

50:                                               ; preds = %42, %39
  %51 = phi i32 [ %.pre, %42 ], [ %40, %39 ]
  %.149 = phi i64 [ %49, %42 ], [ %.048, %39 ]
  %52 = icmp eq i32 %51, 2
  br i1 %52, label %53, label %61

53:                                               ; preds = %50
  %54 = getelementptr inbounds i8, ptr %0, i64 136
  %55 = load i64, ptr %54, align 8, !tbaa !20
  %56 = tail call noundef i64 @_Z22suppliers_to_partitionm(i64 noundef %55)
  %57 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %58 = zext i32 %57 to i64
  %59 = urem i64 %56, %58
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %59, i64 noundef 1)
  %60 = add nuw nsw i64 %.149, 1
  %.pr52 = load i32, ptr %29, align 8, !tbaa !11
  br label %61

61:                                               ; preds = %53, %50
  %62 = phi i32 [ %.pr52, %53 ], [ %51, %50 ]
  %.250 = phi i64 [ %60, %53 ], [ %.149, %50 ]
  %63 = icmp eq i32 %62, 5
  br i1 %63, label %64, label %.loopexit55

64:                                               ; preds = %61
  %65 = getelementptr inbounds i8, ptr %0, i64 144
  %66 = load i64, ptr %65, align 8, !tbaa !19
  %67 = tail call noundef i64 @_Z21products_to_partitionm(i64 noundef %66)
  %68 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %69 = zext i32 %68 to i64
  %70 = urem i64 %67, %69
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %70, i64 noundef 1)
  %71 = add nuw nsw i64 %.250, 1
  %72 = getelementptr inbounds i8, ptr %0, i64 152
  %73 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %72)
  %.not72 = icmp eq i64 %73, 0
  br i1 %.not72, label %.loopexit55, label %.lr.ph60

.lr.ph60:                                         ; preds = %64, %83
  %.04558 = phi i64 [ %84, %83 ], [ 0, %64 ]
  %.35157 = phi i64 [ %.4, %83 ], [ %71, %64 ]
  %74 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %.04558)
  %75 = tail call noundef i64 @_Z18parts_to_partitionm(i64 noundef %74)
  %76 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %77 = zext i32 %76 to i64
  %78 = urem i64 %75, %77
  %79 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %78)
  %80 = icmp eq i64 %79, 0
  br i1 %80, label %81, label %83

81:                                               ; preds = %.lr.ph60
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %78, i64 noundef 1)
  %82 = add i64 %.35157, 1
  br label %83

83:                                               ; preds = %.lr.ph60, %81
  %.4 = phi i64 [ %82, %81 ], [ %.35157, %.lr.ph60 ]
  %84 = add nuw i64 %.04558, 1
  %85 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %72)
  %86 = icmp ult i64 %84, %85
  br i1 %86, label %.lr.ph60, label %.loopexit55, !llvm.loop !21

.loopexit55:                                      ; preds = %83, %64, %61
  %.5 = phi i64 [ %.250, %61 ], [ %71, %64 ], [ %.4, %83 ]
  %87 = load i32, ptr %29, align 8, !tbaa !11
  %88 = icmp eq i32 %87, 4
  br i1 %88, label %89, label %112

89:                                               ; preds = %.loopexit55
  %90 = getelementptr inbounds i8, ptr %0, i64 136
  %91 = load i64, ptr %90, align 8, !tbaa !20
  %92 = tail call noundef i64 @_Z22suppliers_to_partitionm(i64 noundef %91)
  %93 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %94 = zext i32 %93 to i64
  %95 = urem i64 %92, %94
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %95, i64 noundef 1)
  %96 = add i64 %.5, 1
  %97 = getelementptr inbounds i8, ptr %0, i64 152
  %98 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %97)
  %.not73 = icmp eq i64 %98, 0
  br i1 %.not73, label %thread-pre-split, label %.lr.ph64

.lr.ph64:                                         ; preds = %89, %108
  %.04462 = phi i64 [ %109, %108 ], [ 0, %89 ]
  %.661 = phi i64 [ %.7, %108 ], [ %96, %89 ]
  %99 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %.04462)
  %100 = tail call noundef i64 @_Z18parts_to_partitionm(i64 noundef %99)
  %101 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = urem i64 %100, %102
  %104 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %103)
  %105 = icmp eq i64 %104, 0
  br i1 %105, label %106, label %108

106:                                              ; preds = %.lr.ph64
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %103, i64 noundef 1)
  %107 = add i64 %.661, 1
  br label %108

108:                                              ; preds = %.lr.ph64, %106
  %.7 = phi i64 [ %107, %106 ], [ %.661, %.lr.ph64 ]
  %109 = add nuw i64 %.04462, 1
  %110 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %97)
  %111 = icmp ult i64 %109, %110
  br i1 %111, label %.lr.ph64, label %thread-pre-split, !llvm.loop !22

thread-pre-split:                                 ; preds = %108, %89
  %.6.lcssa = phi i64 [ %96, %89 ], [ %.7, %108 ]
  %.pr53 = load i32, ptr %29, align 8, !tbaa !11
  br label %112

112:                                              ; preds = %thread-pre-split, %.loopexit55
  %113 = phi i32 [ %.pr53, %thread-pre-split ], [ %87, %.loopexit55 ]
  %.8 = phi i64 [ %.6.lcssa, %thread-pre-split ], [ %.5, %.loopexit55 ]
  %114 = icmp eq i32 %113, 6
  br i1 %114, label %115, label %.loopexit

115:                                              ; preds = %112
  %116 = getelementptr inbounds i8, ptr %0, i64 144
  %117 = load i64, ptr %116, align 8, !tbaa !19
  %118 = tail call noundef i64 @_Z21products_to_partitionm(i64 noundef %117)
  %119 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %120 = zext i32 %119 to i64
  %121 = urem i64 %118, %120
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %121, i64 noundef 1)
  %122 = add i64 %.8, 1
  %123 = getelementptr inbounds i8, ptr %0, i64 152
  %124 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %123)
  %.not74 = icmp eq i64 %124, 0
  br i1 %.not74, label %.loopexit, label %.lr.ph70

.lr.ph70:                                         ; preds = %115, %138
  %.068 = phi i64 [ %139, %138 ], [ 0, %115 ]
  %.966 = phi i64 [ %.10, %138 ], [ %122, %115 ]
  %125 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %.068)
  %126 = tail call noundef i64 @_Z18parts_to_partitionm(i64 noundef %125)
  %127 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %128 = zext i32 %127 to i64
  %129 = urem i64 %126, %128
  %130 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %129)
  %131 = icmp eq i64 %130, 0
  br i1 %131, label %132, label %134

132:                                              ; preds = %.lr.ph70
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %129, i64 noundef 1)
  %133 = add i64 %.966, 1
  br label %134

134:                                              ; preds = %132, %.lr.ph70
  %.10 = phi i64 [ %133, %132 ], [ %.966, %.lr.ph70 ]
  %135 = tail call noundef i64 @_ZN5ArrayImEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %129)
  %136 = icmp eq i64 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %134
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %129, i64 noundef 1)
  br label %138

138:                                              ; preds = %134, %137
  %139 = add nuw i64 %.068, 1
  %140 = tail call noundef i64 @_ZN5ArrayImE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %123)
  %141 = icmp ult i64 %139, %140
  br i1 %141, label %.lr.ph70, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %138, %115, %112
  %.11 = phi i64 [ %.8, %112 ], [ %122, %115 ], [ %.10, %138 ]
  %142 = load i32, ptr %29, align 8, !tbaa !11
  %143 = icmp eq i32 %142, 7
  br i1 %143, label %144, label %152

144:                                              ; preds = %.loopexit
  %145 = getelementptr inbounds i8, ptr %0, i64 144
  %146 = load i64, ptr %145, align 8, !tbaa !19
  %147 = tail call noundef i64 @_Z21products_to_partitionm(i64 noundef %146)
  %148 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %149 = zext i32 %148 to i64
  %150 = urem i64 %147, %149
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %150, i64 noundef 1)
  %151 = add i64 %.11, 1
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %150, i64 noundef 1)
  %.pr54 = load i32, ptr %29, align 8, !tbaa !11
  br label %152

152:                                              ; preds = %144, %.loopexit
  %153 = phi i32 [ %.pr54, %144 ], [ %142, %.loopexit ]
  %.12 = phi i64 [ %151, %144 ], [ %.11, %.loopexit ]
  %154 = icmp eq i32 %153, 8
  br i1 %154, label %155, label %163

155:                                              ; preds = %152
  %156 = getelementptr inbounds i8, ptr %0, i64 128
  %157 = load i64, ptr %156, align 8, !tbaa !18
  %158 = tail call noundef i64 @_Z18parts_to_partitionm(i64 noundef %157)
  %159 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %160 = zext i32 %159 to i64
  %161 = urem i64 %158, %160
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %161, i64 noundef 1)
  %162 = add i64 %.12, 1
  tail call void @_ZN5ArrayImE3setEmm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %161, i64 noundef 1)
  br label %163

163:                                              ; preds = %155, %152
  %.13 = phi i64 [ %162, %155 ], [ %.12, %152 ]
  ret i64 %.13
}

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

attributes #0 = { 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 #1 = { "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 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !17, i64 112}
!12 = !{!"_ZTS8PPSQuery", !13, i64 0, !17, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !15, i64 152}
!13 = !{!"_ZTS9BaseQuery", !14, i64 8, !15, i64 16, !15, i64 40, !15, i64 64, !15, i64 88}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTS5ArrayImE", !16, i64 0, !14, i64 8, !14, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTS10PPSTxnType", !7, i64 0}
!18 = !{!12, !14, i64 128}
!19 = !{!12, !14, i64 144}
!20 = !{!12, !14, i64 136}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}


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