; LLVM IR from hpcg-benchmark/hpcg :: src/ComputeOptimalShapeXYZ.ll (Z22ComputeOptimalShapeXYZiRiS_S_)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_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::_Rb_tree_iterator" = type { ptr }
%class.MixedBaseCounter = type { i32, [33 x i32], [33 x i32] }
%"struct.std::pair" = type { i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22ComputeOptimalShapeXYZiRiS_S_(i32 noundef %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::map", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca [33 x i32], align 16
  %18 = alloca [33 x i32], align 16
  %19 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca %class.MixedBaseCounter, align 4
  %22 = alloca %class.MixedBaseCounter, align 4
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca %class.MixedBaseCounter, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #5
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  invoke void @_ZL19ComputePrimeFactorsiRSt3mapIiiSt4lessIiESaISt4pairIKiiEEE(i32 noundef %29, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %30 unwind label %105

30:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %31 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %32 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %12, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %33 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #5
  %34 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  %35 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  %36 = getelementptr inbounds %"struct.std::pair", ptr %35, i32 0, i32 0
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = load ptr, ptr %6, align 8, !tbaa !9
  store i32 %37, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %39 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %40 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
  store ptr %39, ptr %40, align 8
  %41 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  br i1 %41, label %42, label %48

42:                                               ; preds = %30
  %43 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #5
  %44 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %15, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  %45 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  %46 = getelementptr inbounds %"struct.std::pair", ptr %45, i32 0, i32 0
  %47 = load i32, ptr %46, align 4, !tbaa !11
  br label %51

48:                                               ; preds = %30
  %49 = load ptr, ptr %7, align 8, !tbaa !9
  %50 = load i32, ptr %49, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %48, %42
  %52 = phi i32 [ %47, %42 ], [ %50, %48 ]
  %53 = load ptr, ptr %7, align 8, !tbaa !9
  store i32 %52, ptr %53, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %54 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %55 = icmp eq i64 %54, 1
  br i1 %55, label %56, label %113

56:                                               ; preds = %51
  %57 = load ptr, ptr %6, align 8, !tbaa !9
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = load ptr, ptr %6, align 8, !tbaa !9
  %60 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %59)
          to label %61 unwind label %109

61:                                               ; preds = %56
  %62 = load i32, ptr %60, align 4, !tbaa !5
  %63 = sdiv i32 %62, 3
  %64 = invoke noundef i32 @_ZL5pow_iii(i32 noundef %58, i32 noundef %63)
          to label %65 unwind label %109

65:                                               ; preds = %61
  %66 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %64, ptr %66, align 4, !tbaa !5
  %67 = load ptr, ptr %6, align 8, !tbaa !9
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = load ptr, ptr %6, align 8, !tbaa !9
  %70 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %69)
          to label %71 unwind label %109

71:                                               ; preds = %65
  %72 = load i32, ptr %70, align 4, !tbaa !5
  %73 = sdiv i32 %72, 3
  %74 = load ptr, ptr %6, align 8, !tbaa !9
  %75 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %74)
          to label %76 unwind label %109

76:                                               ; preds = %71
  %77 = load i32, ptr %75, align 4, !tbaa !5
  %78 = srem i32 %77, 3
  %79 = icmp sge i32 %78, 2
  %80 = zext i1 %79 to i64
  %81 = select i1 %79, i32 1, i32 0
  %82 = add nsw i32 %73, %81
  %83 = invoke noundef i32 @_ZL5pow_iii(i32 noundef %68, i32 noundef %82)
          to label %84 unwind label %109

84:                                               ; preds = %76
  %85 = load ptr, ptr %7, align 8, !tbaa !9
  store i32 %83, ptr %85, align 4, !tbaa !5
  %86 = load ptr, ptr %6, align 8, !tbaa !9
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = load ptr, ptr %6, align 8, !tbaa !9
  %89 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %88)
          to label %90 unwind label %109

90:                                               ; preds = %84
  %91 = load i32, ptr %89, align 4, !tbaa !5
  %92 = sdiv i32 %91, 3
  %93 = load ptr, ptr %6, align 8, !tbaa !9
  %94 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %93)
          to label %95 unwind label %109

95:                                               ; preds = %90
  %96 = load i32, ptr %94, align 4, !tbaa !5
  %97 = srem i32 %96, 3
  %98 = icmp sge i32 %97, 1
  %99 = zext i1 %98 to i64
  %100 = select i1 %98, i32 1, i32 0
  %101 = add nsw i32 %92, %100
  %102 = invoke noundef i32 @_ZL5pow_iii(i32 noundef %87, i32 noundef %101)
          to label %103 unwind label %109

103:                                              ; preds = %95
  %104 = load ptr, ptr %6, align 8, !tbaa !9
  store i32 %102, ptr %104, align 4, !tbaa !5
  br label %312

105:                                              ; preds = %4
  %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 %314

109:                                              ; preds = %168, %162, %144, %136, %133, %122, %116, %95, %90, %84, %76, %71, %65, %61, %56
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %10, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %11, align 4
  br label %313

113:                                              ; preds = %51
  %114 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %115 = icmp eq i64 %114, 2
  br i1 %115, label %116, label %130

116:                                              ; preds = %113
  %117 = load ptr, ptr %6, align 8, !tbaa !9
  %118 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %117)
          to label %119 unwind label %109

119:                                              ; preds = %116
  %120 = load i32, ptr %118, align 4, !tbaa !5
  %121 = icmp eq i32 %120, 1
  br i1 %121, label %122, label %130

122:                                              ; preds = %119
  %123 = load ptr, ptr %7, align 8, !tbaa !9
  %124 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %123)
          to label %125 unwind label %109

125:                                              ; preds = %122
  %126 = load i32, ptr %124, align 4, !tbaa !5
  %127 = icmp eq i32 %126, 1
  br i1 %127, label %128, label %130

128:                                              ; preds = %125
  %129 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 1, ptr %129, align 4, !tbaa !5
  br label %311

130:                                              ; preds = %125, %119, %113
  %131 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %132 = icmp eq i64 %131, 2
  br i1 %132, label %133, label %159

133:                                              ; preds = %130
  %134 = load ptr, ptr %6, align 8, !tbaa !9
  %135 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %134)
          to label %136 unwind label %109

136:                                              ; preds = %133
  %137 = load i32, ptr %135, align 4, !tbaa !5
  %138 = load ptr, ptr %7, align 8, !tbaa !9
  %139 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %138)
          to label %140 unwind label %109

140:                                              ; preds = %136
  %141 = load i32, ptr %139, align 4, !tbaa !5
  %142 = add nsw i32 %137, %141
  %143 = icmp eq i32 %142, 3
  br i1 %143, label %144, label %159

144:                                              ; preds = %140
  %145 = load ptr, ptr %6, align 8, !tbaa !9
  %146 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %145)
          to label %147 unwind label %109

147:                                              ; preds = %144
  %148 = load i32, ptr %146, align 4, !tbaa !5
  %149 = icmp eq i32 %148, 2
  br i1 %149, label %150, label %153

150:                                              ; preds = %147
  %151 = load ptr, ptr %6, align 8, !tbaa !9
  %152 = load i32, ptr %151, align 4, !tbaa !5
  br label %156

153:                                              ; preds = %147
  %154 = load ptr, ptr %7, align 8, !tbaa !9
  %155 = load i32, ptr %154, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %153, %150
  %157 = phi i32 [ %152, %150 ], [ %155, %153 ]
  %158 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %157, ptr %158, align 4, !tbaa !5
  br label %310

159:                                              ; preds = %140, %130
  %160 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %161 = icmp eq i64 %160, 3
  br i1 %161, label %162, label %184

162:                                              ; preds = %159
  %163 = load ptr, ptr %6, align 8, !tbaa !9
  %164 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %163)
          to label %165 unwind label %109

165:                                              ; preds = %162
  %166 = load i32, ptr %164, align 4, !tbaa !5
  %167 = icmp eq i32 %166, 1
  br i1 %167, label %168, label %184

168:                                              ; preds = %165
  %169 = load ptr, ptr %7, align 8, !tbaa !9
  %170 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 4 dereferenceable(4) %169)
          to label %171 unwind label %109

171:                                              ; preds = %168
  %172 = load i32, ptr %170, align 4, !tbaa !5
  %173 = icmp eq i32 %172, 1
  br i1 %173, label %174, label %184

174:                                              ; preds = %171
  %175 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %176 = getelementptr inbounds %"struct.std::pair", ptr %175, i32 0, i32 1
  %177 = load i32, ptr %176, align 4, !tbaa !13
  %178 = icmp eq i32 %177, 1
  br i1 %178, label %179, label %184

179:                                              ; preds = %174
  %180 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %181 = getelementptr inbounds %"struct.std::pair", ptr %180, i32 0, i32 0
  %182 = load i32, ptr %181, align 4, !tbaa !11
  %183 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %182, ptr %183, align 4, !tbaa !5
  br label %309

184:                                              ; preds = %174, %171, %165, %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 132, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 132, ptr %18) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %185 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %186 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %19, i32 0, i32 0
  store ptr %185, ptr %186, align 8
  br label %187

187:                                              ; preds = %205, %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %188 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %189 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  store ptr %188, ptr %189, align 8
  %190 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br i1 %190, label %192, label %191

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

192:                                              ; preds = %187
  %193 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %194 = getelementptr inbounds %"struct.std::pair", ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 4, !tbaa !11
  %196 = load i32, ptr %16, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [33 x i32], ptr %17, i64 0, i64 %197
  store i32 %195, ptr %198, align 4, !tbaa !5
  %199 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %200 = getelementptr inbounds %"struct.std::pair", ptr %199, i32 0, i32 1
  %201 = load i32, ptr %200, align 4, !tbaa !13
  %202 = load i32, ptr %16, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [33 x i32], ptr %18, i64 0, i64 %203
  store i32 %201, ptr %204, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %192
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %207 = load i32, ptr %16, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %16, align 4, !tbaa !5
  br label %187, !llvm.loop !14

209:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 268, ptr %21) #5
  %210 = getelementptr inbounds [33 x i32], ptr %18, i64 0, i64 0
  %211 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %212 = trunc i64 %211 to i32
  invoke void @_ZN16MixedBaseCounterC1EPii(ptr noundef nonnull align 4 dereferenceable(268) %21, ptr noundef %210, i32 noundef %212)
          to label %213 unwind label %273

213:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 268, ptr %22) #5
  %214 = getelementptr inbounds [33 x i32], ptr %18, i64 0, i64 0
  %215 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  %216 = trunc i64 %215 to i32
  invoke void @_ZN16MixedBaseCounterC1EPii(ptr noundef nonnull align 4 dereferenceable(268) %22, ptr noundef %214, i32 noundef %216)
          to label %217 unwind label %277

217:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %218 = load i32, ptr %5, align 4, !tbaa !5
  %219 = sitofp i32 %218 to double
  %220 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %219, double 1.000000e+00)
  store double %220, ptr %24, align 8, !tbaa !16
  invoke void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268) %22)
          to label %221 unwind label %281

221:                                              ; preds = %217
  br label %222

222:                                              ; preds = %303, %221
  %223 = invoke noundef i32 @_ZN16MixedBaseCounter7is_zeroEv(ptr noundef nonnull align 4 dereferenceable(268) %22)
          to label %224 unwind label %281

224:                                              ; preds = %222
  %225 = icmp ne i32 %223, 0
  %226 = xor i1 %225, true
  br i1 %226, label %227, label %305

227:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 268, ptr %25) #5
  invoke void @_ZN16MixedBaseCounterC1ERS_S0_(ptr noundef nonnull align 4 dereferenceable(268) %25, ptr noundef nonnull align 4 dereferenceable(268) %21, ptr noundef nonnull align 4 dereferenceable(268) %22)
          to label %228 unwind label %285

228:                                              ; preds = %227
  invoke void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268) %25)
          to label %229 unwind label %285

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %299, %229
  %231 = invoke noundef i32 @_ZN16MixedBaseCounter7is_zeroEv(ptr noundef nonnull align 4 dereferenceable(268) %25)
          to label %232 unwind label %285

232:                                              ; preds = %230
  %233 = icmp ne i32 %231, 0
  %234 = xor i1 %233, true
  br i1 %234, label %235, label %301

235:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %236 = getelementptr inbounds [33 x i32], ptr %17, i64 0, i64 0
  %237 = invoke noundef i32 @_ZN16MixedBaseCounter7productEPi(ptr noundef nonnull align 4 dereferenceable(268) %22, ptr noundef %236)
          to label %238 unwind label %289

238:                                              ; preds = %235
  store i32 %237, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %239 = getelementptr inbounds [33 x i32], ptr %17, i64 0, i64 0
  %240 = invoke noundef i32 @_ZN16MixedBaseCounter7productEPi(ptr noundef nonnull align 4 dereferenceable(268) %25, ptr noundef %239)
          to label %241 unwind label %293

241:                                              ; preds = %238
  store i32 %240, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %242 = load i32, ptr %5, align 4, !tbaa !5
  %243 = load i32, ptr %26, align 4, !tbaa !5
  %244 = sdiv i32 %242, %243
  %245 = load i32, ptr %27, align 4, !tbaa !5
  %246 = sdiv i32 %244, %245
  store i32 %246, ptr %28, align 4, !tbaa !5
  %247 = load i32, ptr %26, align 4, !tbaa !5
  %248 = sitofp i32 %247 to double
  %249 = load i32, ptr %27, align 4, !tbaa !5
  %250 = sitofp i32 %249 to double
  %251 = load i32, ptr %27, align 4, !tbaa !5
  %252 = sitofp i32 %251 to double
  %253 = load i32, ptr %28, align 4, !tbaa !5
  %254 = sitofp i32 %253 to double
  %255 = fmul double %252, %254
  %256 = call double @llvm.fmuladd.f64(double %248, double %250, double %255)
  %257 = load i32, ptr %26, align 4, !tbaa !5
  %258 = sitofp i32 %257 to double
  %259 = load i32, ptr %28, align 4, !tbaa !5
  %260 = sitofp i32 %259 to double
  %261 = call double @llvm.fmuladd.f64(double %258, double %260, double %256)
  store double %261, ptr %23, align 8, !tbaa !16
  %262 = load double, ptr %23, align 8, !tbaa !16
  %263 = load double, ptr %24, align 8, !tbaa !16
  %264 = fcmp olt double %262, %263
  br i1 %264, label %265, label %297

265:                                              ; preds = %241
  %266 = load double, ptr %23, align 8, !tbaa !16
  store double %266, ptr %24, align 8, !tbaa !16
  %267 = load i32, ptr %26, align 4, !tbaa !5
  %268 = load ptr, ptr %6, align 8, !tbaa !9
  store i32 %267, ptr %268, align 4, !tbaa !5
  %269 = load i32, ptr %27, align 4, !tbaa !5
  %270 = load ptr, ptr %7, align 8, !tbaa !9
  store i32 %269, ptr %270, align 4, !tbaa !5
  %271 = load i32, ptr %28, align 4, !tbaa !5
  %272 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %271, ptr %272, align 4, !tbaa !5
  br label %297

273:                                              ; preds = %209
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %10, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %11, align 4
  br label %308

277:                                              ; preds = %213
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %10, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %11, align 4
  br label %307

281:                                              ; preds = %302, %222, %217
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %10, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %11, align 4
  br label %306

285:                                              ; preds = %298, %230, %228, %227
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %10, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %11, align 4
  br label %304

289:                                              ; preds = %235
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %10, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %11, align 4
  br label %300

293:                                              ; preds = %238
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %10, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %300

297:                                              ; preds = %265, %241
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %298

298:                                              ; preds = %297
  invoke void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268) %25)
          to label %299 unwind label %285

299:                                              ; preds = %298
  br label %230, !llvm.loop !18

300:                                              ; preds = %293, %289
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %304

301:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 268, ptr %25) #5
  br label %302

302:                                              ; preds = %301
  invoke void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268) %22)
          to label %303 unwind label %281

303:                                              ; preds = %302
  br label %222, !llvm.loop !19

304:                                              ; preds = %300, %285
  call void @llvm.lifetime.end.p0(i64 268, ptr %25) #5
  br label %306

305:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 268, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 268, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 132, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 132, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %309

306:                                              ; preds = %304, %281
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %307

307:                                              ; preds = %306, %277
  call void @llvm.lifetime.end.p0(i64 268, ptr %22) #5
  br label %308

308:                                              ; preds = %307, %273
  call void @llvm.lifetime.end.p0(i64 268, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 132, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 132, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %313

309:                                              ; preds = %305, %179
  br label %310

310:                                              ; preds = %309, %156
  br label %311

311:                                              ; preds = %310, %128
  br label %312

312:                                              ; preds = %311, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  ret void

313:                                              ; preds = %308, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %314

314:                                              ; preds = %313, %105
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #5
  br label %315

315:                                              ; preds = %314
  %316 = load ptr, ptr %10, align 8
  %317 = load i32, ptr %11, align 4
  %318 = insertvalue { ptr, i32 } poison, ptr %316, 0
  %319 = insertvalue { ptr, i32 } %318, i32 %317, 1
  resume { ptr, i32 } %319
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5pow_iii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

declare void @_ZN16MixedBaseCounterC1EPii(ptr noundef nonnull align 4 dereferenceable(268), ptr noundef, i32 noundef) unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268)) #3

declare noundef i32 @_ZN16MixedBaseCounter7is_zeroEv(ptr noundef nonnull align 4 dereferenceable(268)) #3

declare void @_ZN16MixedBaseCounterC1ERS_S0_(ptr noundef nonnull align 4 dereferenceable(268), ptr noundef nonnull align 4 dereferenceable(268), ptr noundef nonnull align 4 dereferenceable(268)) unnamed_addr #3

declare noundef i32 @_ZN16MixedBaseCounter7productEPi(ptr noundef nonnull align 4 dereferenceable(268), ptr noundef) #3

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

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


; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_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::_Rb_tree_iterator" = type { ptr }
%class.MixedBaseCounter = type { i32, [33 x i32], [33 x i32] }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22ComputeOptimalShapeXYZiRiS_S_(i32 noundef %0, ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %3) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::map", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca [33 x i32], align 16
  %11 = alloca [33 x i32], align 16
  %12 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %class.MixedBaseCounter, align 4
  %15 = alloca %class.MixedBaseCounter, align 4
  %16 = alloca %class.MixedBaseCounter, align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #5
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  invoke void @_ZL19ComputePrimeFactorsiRSt3mapIiiSt4lessIiESaISt4pairIKiiEEE(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %17 unwind label %64

17:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %18 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %18, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %19 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #5
  store ptr %19, ptr %7, align 8
  %20 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %21 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %21, ptr %1, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %22 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %22, ptr %8, align 8
  %23 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  br i1 %23, label %24, label %27

24:                                               ; preds = %17
  %25 = call ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #5
  store ptr %25, ptr %9, align 8
  %26 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br label %27

27:                                               ; preds = %17, %24
  %.in = phi ptr [ %26, %24 ], [ %2, %17 ]
  %28 = load i32, ptr %.in, align 4, !tbaa !10
  store i32 %28, ptr %2, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %29 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %30 = icmp eq i64 %29, 1
  br i1 %30, label %31, label %68

31:                                               ; preds = %27
  %32 = load i32, ptr %1, align 4, !tbaa !10
  %33 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %34 unwind label %66

34:                                               ; preds = %31
  %35 = load i32, ptr %33, align 4, !tbaa !10
  %36 = sdiv i32 %35, 3
  %37 = call noundef i32 @_ZL5pow_iii(i32 noundef %32, i32 noundef %36)
  store i32 %37, ptr %3, align 4, !tbaa !10
  %38 = load i32, ptr %1, align 4, !tbaa !10
  %39 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %40 unwind label %66

40:                                               ; preds = %34
  %41 = load i32, ptr %39, align 4, !tbaa !10
  %42 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %43 unwind label %66

43:                                               ; preds = %40
  %44 = sdiv i32 %41, 3
  %45 = load i32, ptr %42, align 4, !tbaa !10
  %46 = srem i32 %45, 3
  %47 = icmp sgt i32 %46, 1
  %48 = zext i1 %47 to i32
  %49 = add nsw i32 %44, %48
  %50 = call noundef i32 @_ZL5pow_iii(i32 noundef %38, i32 noundef %49)
  store i32 %50, ptr %2, align 4, !tbaa !10
  %51 = load i32, ptr %1, align 4, !tbaa !10
  %52 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %53 unwind label %66

53:                                               ; preds = %43
  %54 = load i32, ptr %52, align 4, !tbaa !10
  %55 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %56 unwind label %66

56:                                               ; preds = %53
  %57 = sdiv i32 %54, 3
  %58 = load i32, ptr %55, align 4, !tbaa !10
  %59 = srem i32 %58, 3
  %60 = icmp sgt i32 %59, 0
  %61 = zext i1 %60 to i32
  %62 = add nsw i32 %57, %61
  %63 = call noundef i32 @_ZL5pow_iii(i32 noundef %51, i32 noundef %62)
  store i32 %63, ptr %1, align 4, !tbaa !10
  br label %178

64:                                               ; preds = %4
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %180

66:                                               ; preds = %108, %103, %94, %87, %85, %76, %71, %53, %43, %40, %34, %31
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %179

68:                                               ; preds = %27
  %69 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %70 = icmp eq i64 %69, 2
  br i1 %70, label %71, label %82

71:                                               ; preds = %68
  %72 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %73 unwind label %66

73:                                               ; preds = %71
  %74 = load i32, ptr %72, align 4, !tbaa !10
  %75 = icmp eq i32 %74, 1
  br i1 %75, label %76, label %82

76:                                               ; preds = %73
  %77 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %78 unwind label %66

78:                                               ; preds = %76
  %79 = load i32, ptr %77, align 4, !tbaa !10
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  store i32 1, ptr %3, align 4, !tbaa !10
  br label %178

82:                                               ; preds = %78, %73, %68
  %83 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %84 = icmp eq i64 %83, 2
  br i1 %84, label %85, label %100

85:                                               ; preds = %82
  %86 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %87 unwind label %66

87:                                               ; preds = %85
  %88 = load i32, ptr %86, align 4, !tbaa !10
  %89 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %90 unwind label %66

90:                                               ; preds = %87
  %91 = load i32, ptr %89, align 4, !tbaa !10
  %92 = add nsw i32 %91, %88
  %93 = icmp eq i32 %92, 3
  br i1 %93, label %94, label %100

94:                                               ; preds = %90
  %95 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %96 unwind label %66

96:                                               ; preds = %94
  %97 = load i32, ptr %95, align 4, !tbaa !10
  %98 = icmp eq i32 %97, 2
  %.val = load i32, ptr %1, align 4
  %.val73 = load i32, ptr %2, align 4
  %99 = select i1 %98, i32 %.val, i32 %.val73
  store i32 %99, ptr %3, align 4, !tbaa !10
  br label %178

100:                                              ; preds = %90, %82
  %101 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %102 = icmp eq i64 %101, 3
  br i1 %102, label %103, label %121

103:                                              ; preds = %100
  %104 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %105 unwind label %66

105:                                              ; preds = %103
  %106 = load i32, ptr %104, align 4, !tbaa !10
  %107 = icmp eq i32 %106, 1
  br i1 %107, label %108, label %121

108:                                              ; preds = %105
  %109 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %110 unwind label %66

110:                                              ; preds = %108
  %111 = load i32, ptr %109, align 4, !tbaa !10
  %112 = icmp eq i32 %111, 1
  br i1 %112, label %113, label %121

113:                                              ; preds = %110
  %114 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %115 = getelementptr inbounds i8, ptr %114, i64 4
  %116 = load i32, ptr %115, align 4, !tbaa !11
  %117 = icmp eq i32 %116, 1
  br i1 %117, label %118, label %121

118:                                              ; preds = %113
  %119 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %120 = load i32, ptr %119, align 4, !tbaa !5
  store i32 %120, ptr %3, align 4, !tbaa !10
  br label %178

121:                                              ; preds = %113, %110, %105, %100
  call void @llvm.lifetime.start.p0(i64 132, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 132, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %122 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %122, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %123 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %123, ptr %13, align 8
  %124 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br i1 %124, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 268, ptr nonnull %14) #5
  %125 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %126 = trunc i64 %125 to i32
  invoke void @_ZN16MixedBaseCounterC1EPii(ptr noundef nonnull align 4 dereferenceable(268) %14, ptr noundef nonnull %11, i32 noundef %126)
          to label %137 unwind label %164

.lr.ph:                                           ; preds = %121, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %121 ]
  %127 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = getelementptr inbounds [33 x i32], ptr %10, i64 0, i64 %indvars.iv
  store i32 %128, ptr %129, align 4, !tbaa !10
  %130 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %131 = getelementptr inbounds i8, ptr %130, i64 4
  %132 = load i32, ptr %131, align 4, !tbaa !11
  %133 = getelementptr inbounds [33 x i32], ptr %11, i64 0, i64 %indvars.iv
  store i32 %132, ptr %133, align 4, !tbaa !10
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %135 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  store ptr %135, ptr %13, align 8
  %136 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br i1 %136, label %.lr.ph, label %._crit_edge, !llvm.loop !12

137:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 268, ptr nonnull %15) #5
  %138 = call noundef i64 @_ZNKSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  %139 = trunc i64 %138 to i32
  invoke void @_ZN16MixedBaseCounterC1EPii(ptr noundef nonnull align 4 dereferenceable(268) %15, ptr noundef nonnull %11, i32 noundef %139)
          to label %140 unwind label %166

140:                                              ; preds = %137
  invoke void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268) %15)
          to label %.preheader74.preheader unwind label %.loopexit.split-lp76

.preheader74.preheader:                           ; preds = %140
  %141 = sitofp i32 %0 to double
  %142 = call double @llvm.fmuladd.f64(double %141, double 2.000000e+00, double 1.000000e+00)
  br label %.preheader74

.preheader74:                                     ; preds = %.preheader74.preheader, %173
  %.058 = phi double [ %.159, %173 ], [ %142, %.preheader74.preheader ]
  %143 = invoke noundef i32 @_ZN16MixedBaseCounter7is_zeroEv(ptr noundef nonnull align 4 dereferenceable(268) %15)
          to label %144 unwind label %.loopexit75

144:                                              ; preds = %.preheader74
  %.not = icmp eq i32 %143, 0
  br i1 %.not, label %145, label %175

145:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 268, ptr nonnull %16) #5
  invoke void @_ZN16MixedBaseCounterC1ERS_S0_(ptr noundef nonnull align 4 dereferenceable(268) %16, ptr noundef nonnull align 4 dereferenceable(268) %14, ptr noundef nonnull align 4 dereferenceable(268) %15)
          to label %146 unwind label %.loopexit.split-lp

146:                                              ; preds = %145
  invoke void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268) %16)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %146, %172
  %.159 = phi double [ %.260, %172 ], [ %.058, %146 ]
  %147 = invoke noundef i32 @_ZN16MixedBaseCounter7is_zeroEv(ptr noundef nonnull align 4 dereferenceable(268) %16)
          to label %148 unwind label %.loopexit

148:                                              ; preds = %.preheader
  %.not62 = icmp eq i32 %147, 0
  br i1 %.not62, label %149, label %173

149:                                              ; preds = %148
  %150 = invoke noundef i32 @_ZN16MixedBaseCounter7productEPi(ptr noundef nonnull align 4 dereferenceable(268) %15, ptr noundef nonnull %10)
          to label %151 unwind label %168

151:                                              ; preds = %149
  %152 = invoke noundef i32 @_ZN16MixedBaseCounter7productEPi(ptr noundef nonnull align 4 dereferenceable(268) %16, ptr noundef nonnull %10)
          to label %153 unwind label %170

153:                                              ; preds = %151
  %154 = sdiv i32 %0, %150
  %155 = sdiv i32 %154, %152
  %156 = sitofp i32 %150 to double
  %157 = sitofp i32 %152 to double
  %158 = sitofp i32 %155 to double
  %159 = fmul double %157, %158
  %160 = call double @llvm.fmuladd.f64(double %156, double %157, double %159)
  %161 = call double @llvm.fmuladd.f64(double %156, double %158, double %160)
  %162 = fcmp olt double %161, %.159
  br i1 %162, label %163, label %172

163:                                              ; preds = %153
  store i32 %150, ptr %1, align 4, !tbaa !10
  store i32 %152, ptr %2, align 4, !tbaa !10
  store i32 %155, ptr %3, align 4, !tbaa !10
  br label %172

164:                                              ; preds = %._crit_edge
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %177

166:                                              ; preds = %137
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %176

.loopexit75:                                      ; preds = %.preheader74, %173
  %lpad.loopexit77 = landingpad { ptr, i32 }
          cleanup
  br label %176

.loopexit.split-lp76:                             ; preds = %140
  %lpad.loopexit.split-lp78 = landingpad { ptr, i32 }
          cleanup
  br label %176

.loopexit:                                        ; preds = %.preheader, %172
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %174

.loopexit.split-lp:                               ; preds = %145, %146
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %174

168:                                              ; preds = %149
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %174

170:                                              ; preds = %151
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %174

172:                                              ; preds = %163, %153
  %.260 = phi double [ %161, %163 ], [ %.159, %153 ]
  invoke void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268) %16)
          to label %.preheader unwind label %.loopexit, !llvm.loop !14

173:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 268, ptr nonnull %16) #5
  invoke void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268) %15)
          to label %.preheader74 unwind label %.loopexit75, !llvm.loop !15

174:                                              ; preds = %.loopexit, %.loopexit.split-lp, %168, %170
  %.pn64 = phi { ptr, i32 } [ %171, %170 ], [ %169, %168 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 268, ptr nonnull %16) #5
  br label %176

175:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 268, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 268, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %10) #5
  br label %178

176:                                              ; preds = %.loopexit75, %.loopexit.split-lp76, %174, %166
  %.pn64.pn.pn = phi { ptr, i32 } [ %167, %166 ], [ %.pn64, %174 ], [ %lpad.loopexit77, %.loopexit75 ], [ %lpad.loopexit.split-lp78, %.loopexit.split-lp76 ]
  call void @llvm.lifetime.end.p0(i64 268, ptr nonnull %15) #5
  br label %177

177:                                              ; preds = %176, %164
  %.pn64.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn, %176 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 268, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %10) #5
  br label %179

178:                                              ; preds = %81, %118, %175, %96, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  ret void

179:                                              ; preds = %177, %66
  %.pn70 = phi { ptr, i32 } [ %67, %66 ], [ %.pn64.pn.pn.pn, %177 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %180

180:                                              ; preds = %179, %64
  %.pn70.pn = phi { ptr, i32 } [ %.pn70, %179 ], [ %65, %64 ]
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn70.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5pow_iii(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

declare void @_ZN16MixedBaseCounterC1EPii(ptr noundef nonnull align 4 dereferenceable(268), ptr noundef, i32 noundef) unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

declare void @_ZN16MixedBaseCounter4nextEv(ptr noundef nonnull align 4 dereferenceable(268)) local_unnamed_addr #3

declare noundef i32 @_ZN16MixedBaseCounter7is_zeroEv(ptr noundef nonnull align 4 dereferenceable(268)) local_unnamed_addr #3

declare void @_ZN16MixedBaseCounterC1ERS_S0_(ptr noundef nonnull align 4 dereferenceable(268), ptr noundef nonnull align 4 dereferenceable(268), ptr noundef nonnull align 4 dereferenceable(268)) unnamed_addr #3

declare noundef i32 @_ZN16MixedBaseCounter7productEPi(ptr noundef nonnull align 4 dereferenceable(268), ptr noundef) local_unnamed_addr #3

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass