; LLVM IR from Saikat2407/DSA_Hacktoberfest2023 :: c++/Knapsack algorithms (KnapsackDynamicApproach)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%class.dclass = type { i32, i32, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.dclass, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  %32 = zext i32 %31 to i64
  %33 = call ptr @llvm.stacksave.p0()
  store ptr %33, ptr %4, align 8
  %34 = alloca %class.dclass, i64 %32, align 16
  store i64 %32, ptr %5, align 8
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  %37 = zext i32 %36 to i64
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  %40 = zext i32 %39 to i64
  %41 = mul nuw i64 %37, %40
  %42 = alloca i32, i64 %41, align 16
  store i64 %37, ptr %6, align 8
  store i64 %40, ptr %7, align 8
  %43 = getelementptr inbounds %class.dclass, ptr %34, i64 0
  %44 = getelementptr inbounds %class.dclass, ptr %43, i32 0, i32 0
  store i32 0, ptr %44, align 16, !tbaa !9
  %45 = getelementptr inbounds %class.dclass, ptr %34, i64 0
  %46 = getelementptr inbounds %class.dclass, ptr %45, i32 0, i32 1
  store i32 0, ptr %46, align 4, !tbaa !11
  %47 = getelementptr inbounds %class.dclass, ptr %34, i64 0
  %48 = getelementptr inbounds %class.dclass, ptr %47, i32 0, i32 2
  store i32 0, ptr %48, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %78, %0
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  %53 = icmp slt i32 %50, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %81

55:                                               ; preds = %49
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds %class.dclass, ptr %34, i64 %57
  %59 = getelementptr inbounds %class.dclass, ptr %58, i32 0, i32 2
  store i32 0, ptr %59, align 4, !tbaa !12
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %61 = load i32, ptr %8, align 4, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %60, i32 noundef %61)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @.str.3)
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %class.dclass, ptr %34, i64 %65
  %67 = getelementptr inbounds %class.dclass, ptr %66, i32 0, i32 0
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %67)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %69, i32 noundef %70)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @.str.3)
  %73 = load i32, ptr %8, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %class.dclass, ptr %34, i64 %74
  %76 = getelementptr inbounds %class.dclass, ptr %75, i32 0, i32 1
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %76)
  br label %78

78:                                               ; preds = %55
  %79 = load i32, ptr %8, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %8, align 4, !tbaa !5
  br label %49, !llvm.loop !13

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

82:                                               ; preds = %128, %81
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = load i32, ptr %2, align 4, !tbaa !5
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

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

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %124, %87
  %89 = load i32, ptr %11, align 4, !tbaa !5
  %90 = load i32, ptr %2, align 4, !tbaa !5
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = sub nsw i32 %90, %91
  %93 = icmp slt i32 %89, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %88
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %127

95:                                               ; preds = %88
  %96 = load i32, ptr %11, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %class.dclass, ptr %34, i64 %97
  %99 = getelementptr inbounds %class.dclass, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds %class.dclass, ptr %34, i64 %103
  %105 = getelementptr inbounds %class.dclass, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = icmp sgt i32 %100, %106
  br i1 %107, label %108, label %123

108:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #8
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %class.dclass, ptr %34, i64 %110
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %111, i64 12, i1 false), !tbaa.struct !15
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds %class.dclass, ptr %34, i64 %114
  %116 = load i32, ptr %11, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds %class.dclass, ptr %34, i64 %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %118, ptr align 4 %115, i64 12, i1 false), !tbaa.struct !15
  %119 = load i32, ptr %11, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds %class.dclass, ptr %34, i64 %121
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %122, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  br label %123

123:                                              ; preds = %108, %95
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %11, align 4, !tbaa !5
  br label %88, !llvm.loop !16

127:                                              ; preds = %94
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %9, align 4, !tbaa !5
  br label %82, !llvm.loop !17

131:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %155, %131
  %133 = load i32, ptr %13, align 4, !tbaa !5
  %134 = load i32, ptr %3, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  %136 = icmp slt i32 %133, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %132
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %158

138:                                              ; preds = %132
  %139 = load i32, ptr %13, align 4, !tbaa !5
  %140 = load i32, ptr %2, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  %142 = icmp slt i32 %139, %141
  br i1 %142, label %143, label %149

143:                                              ; preds = %138
  %144 = load i32, ptr %13, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = mul nsw i64 %145, %40
  %147 = getelementptr inbounds i32, ptr %42, i64 %146
  %148 = getelementptr inbounds i32, ptr %147, i64 0
  store i32 0, ptr %148, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %143, %138
  %150 = mul nsw i64 0, %40
  %151 = getelementptr inbounds i32, ptr %42, i64 %150
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i32, ptr %151, i64 %153
  store i32 0, ptr %154, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %149
  %156 = load i32, ptr %13, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %13, align 4, !tbaa !5
  br label %132, !llvm.loop !18

158:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %222, %158
  %160 = load i32, ptr %14, align 4, !tbaa !5
  %161 = load i32, ptr %2, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  %163 = icmp slt i32 %160, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %159
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %225

165:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %218, %165
  %167 = load i32, ptr %15, align 4, !tbaa !5
  %168 = load i32, ptr %3, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  %170 = icmp slt i32 %167, %169
  br i1 %170, label %172, label %171

171:                                              ; preds = %166
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %221

172:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %173 = load i32, ptr %14, align 4, !tbaa !5
  %174 = sub nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = mul nsw i64 %175, %40
  %177 = getelementptr inbounds i32, ptr %42, i64 %176
  %178 = load i32, ptr %15, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %177, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !5
  store i32 %181, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %182 = load i32, ptr %15, align 4, !tbaa !5
  %183 = load i32, ptr %14, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds %class.dclass, ptr %34, i64 %184
  %186 = getelementptr inbounds %class.dclass, ptr %185, i32 0, i32 0
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = sub nsw i32 %182, %187
  store i32 %188, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !5
  %189 = load i32, ptr %17, align 4, !tbaa !5
  %190 = icmp slt i32 %189, 0
  br i1 %190, label %191, label %192

191:                                              ; preds = %172
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %208

192:                                              ; preds = %172
  %193 = load i32, ptr %14, align 4, !tbaa !5
  %194 = sub nsw i32 %193, 1
  %195 = sext i32 %194 to i64
  %196 = mul nsw i64 %195, %40
  %197 = getelementptr inbounds i32, ptr %42, i64 %196
  %198 = load i32, ptr %17, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds i32, ptr %197, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !5
  %202 = load i32, ptr %14, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds %class.dclass, ptr %34, i64 %203
  %205 = getelementptr inbounds %class.dclass, ptr %204, i32 0, i32 1
  %206 = load i32, ptr %205, align 4, !tbaa !11
  %207 = add nsw i32 %201, %206
  store i32 %207, ptr %18, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %192, %191
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = load i32, ptr %14, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = mul nsw i64 %212, %40
  %214 = getelementptr inbounds i32, ptr %42, i64 %213
  %215 = load i32, ptr %15, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds i32, ptr %214, i64 %216
  store i32 %210, ptr %217, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %218

218:                                              ; preds = %208
  %219 = load i32, ptr %15, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %15, align 4, !tbaa !5
  br label %166, !llvm.loop !19

221:                                              ; preds = %171
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %14, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %14, align 4, !tbaa !5
  br label %159, !llvm.loop !20

225:                                              ; preds = %164
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %227 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %226, ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %257, %225
  %229 = load i32, ptr %19, align 4, !tbaa !5
  %230 = load i32, ptr %2, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  %232 = icmp slt i32 %229, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %228
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %260

234:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %252, %234
  %236 = load i32, ptr %20, align 4, !tbaa !5
  %237 = load i32, ptr %3, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  %239 = icmp slt i32 %236, %238
  br i1 %239, label %241, label %240

240:                                              ; preds = %235
  store i32 23, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %255

241:                                              ; preds = %235
  %242 = load i32, ptr %19, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = mul nsw i64 %243, %40
  %245 = getelementptr inbounds i32, ptr %42, i64 %244
  %246 = load i32, ptr %20, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds i32, ptr %245, i64 %247
  %249 = load i32, ptr %248, align 4, !tbaa !5
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %249)
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef @.str.6)
  br label %252

252:                                              ; preds = %241
  %253 = load i32, ptr %20, align 4, !tbaa !5
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %20, align 4, !tbaa !5
  br label %235, !llvm.loop !21

255:                                              ; preds = %240
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %257

257:                                              ; preds = %255
  %258 = load i32, ptr %19, align 4, !tbaa !5
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %19, align 4, !tbaa !5
  br label %228, !llvm.loop !22

260:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %261 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %261, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %262 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %262, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %263 = load i32, ptr %21, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = mul nsw i64 %264, %40
  %266 = getelementptr inbounds i32, ptr %42, i64 %265
  %267 = load i32, ptr %22, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds i32, ptr %266, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !5
  store i32 %270, ptr %23, align 4, !tbaa !5
  br label %271

271:                                              ; preds = %331, %260
  %272 = load i32, ptr %23, align 4, !tbaa !5
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %332

274:                                              ; preds = %271
  br label %275

275:                                              ; preds = %305, %274
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %21, align 4, !tbaa !5
  %278 = sub nsw i32 %277, 1
  %279 = sext i32 %278 to i64
  %280 = mul nsw i64 %279, %40
  %281 = getelementptr inbounds i32, ptr %42, i64 %280
  %282 = load i32, ptr %22, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds i32, ptr %281, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !5
  %286 = load i32, ptr %23, align 4, !tbaa !5
  %287 = icmp eq i32 %285, %286
  br i1 %287, label %288, label %291

288:                                              ; preds = %276
  %289 = load i32, ptr %21, align 4, !tbaa !5
  %290 = add nsw i32 %289, -1
  store i32 %290, ptr %21, align 4, !tbaa !5
  br label %305

291:                                              ; preds = %276
  %292 = load i32, ptr %21, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds %class.dclass, ptr %34, i64 %293
  %295 = getelementptr inbounds %class.dclass, ptr %294, i32 0, i32 2
  store i32 1, ptr %295, align 4, !tbaa !12
  %296 = load i32, ptr %23, align 4, !tbaa !5
  %297 = load i32, ptr %21, align 4, !tbaa !5
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds %class.dclass, ptr %34, i64 %298
  %300 = getelementptr inbounds %class.dclass, ptr %299, i32 0, i32 1
  %301 = load i32, ptr %300, align 4, !tbaa !11
  %302 = sub nsw i32 %296, %301
  store i32 %302, ptr %23, align 4, !tbaa !5
  %303 = load i32, ptr %21, align 4, !tbaa !5
  %304 = add nsw i32 %303, -1
  store i32 %304, ptr %21, align 4, !tbaa !5
  br label %306

305:                                              ; preds = %288
  br label %275, !llvm.loop !23

306:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %307

307:                                              ; preds = %327, %306
  %308 = load i32, ptr %24, align 4, !tbaa !5
  %309 = load i32, ptr %3, align 4, !tbaa !5
  %310 = add nsw i32 %309, 1
  %311 = icmp slt i32 %308, %310
  br i1 %311, label %313, label %312

312:                                              ; preds = %307
  store i32 30, ptr %10, align 4
  br label %330

313:                                              ; preds = %307
  %314 = load i32, ptr %21, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = mul nsw i64 %315, %40
  %317 = getelementptr inbounds i32, ptr %42, i64 %316
  %318 = load i32, ptr %24, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds i32, ptr %317, i64 %319
  %321 = load i32, ptr %320, align 4, !tbaa !5
  %322 = load i32, ptr %23, align 4, !tbaa !5
  %323 = icmp eq i32 %321, %322
  br i1 %323, label %324, label %326

324:                                              ; preds = %313
  %325 = load i32, ptr %24, align 4, !tbaa !5
  store i32 %325, ptr %22, align 4, !tbaa !5
  store i32 30, ptr %10, align 4
  br label %330

326:                                              ; preds = %313
  br label %327

327:                                              ; preds = %326
  %328 = load i32, ptr %24, align 4, !tbaa !5
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %24, align 4, !tbaa !5
  br label %307, !llvm.loop !24

330:                                              ; preds = %324, %312
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %331

331:                                              ; preds = %330
  br label %271, !llvm.loop !25

332:                                              ; preds = %271
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %334 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %333, ptr noundef @.str.8)
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %334, ptr noundef @.str.9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %336

336:                                              ; preds = %369, %332
  %337 = load i32, ptr %25, align 4, !tbaa !5
  %338 = load i32, ptr %2, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  %340 = icmp slt i32 %337, %339
  br i1 %340, label %342, label %341

341:                                              ; preds = %336
  store i32 33, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %372

342:                                              ; preds = %336
  %343 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %344 = load i32, ptr %25, align 4, !tbaa !5
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds %class.dclass, ptr %34, i64 %345
  %347 = getelementptr inbounds %class.dclass, ptr %346, i32 0, i32 0
  %348 = load i32, ptr %347, align 4, !tbaa !9
  %349 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %343, i32 noundef %348)
  %350 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %349, ptr noundef @.str.10)
  %351 = load i32, ptr %25, align 4, !tbaa !5
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds %class.dclass, ptr %34, i64 %352
  %354 = getelementptr inbounds %class.dclass, ptr %353, i32 0, i32 1
  %355 = load i32, ptr %354, align 4, !tbaa !11
  %356 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %350, i32 noundef %355)
  %357 = load i32, ptr %25, align 4, !tbaa !5
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds %class.dclass, ptr %34, i64 %358
  %360 = getelementptr inbounds %class.dclass, ptr %359, i32 0, i32 2
  %361 = load i32, ptr %360, align 4, !tbaa !12
  %362 = icmp eq i32 %361, 1
  br i1 %362, label %363, label %365

363:                                              ; preds = %342
  %364 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.11)
  br label %367

365:                                              ; preds = %342
  %366 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
  br label %367

367:                                              ; preds = %365, %363
  %368 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %369

369:                                              ; preds = %367
  %370 = load i32, ptr %25, align 4, !tbaa !5
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr %25, align 4, !tbaa !5
  br label %336, !llvm.loop !26

372:                                              ; preds = %341
  %373 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
  %374 = load i32, ptr %2, align 4, !tbaa !5
  %375 = sext i32 %374 to i64
  %376 = mul nsw i64 %375, %40
  %377 = getelementptr inbounds i32, ptr %42, i64 %376
  %378 = load i32, ptr %3, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds i32, ptr %377, i64 %379
  %381 = load i32, ptr %380, align 4, !tbaa !5
  %382 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %373, i32 noundef %381)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  %383 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %383)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %384 = load i32, ptr %1, align 4
  ret i32 %384
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 willreturn }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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, !6, i64 0}
!10 = !{!"_ZTS6dclass", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%class.dclass = type { i32, i32, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [25 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %class.dclass, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %6 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %8 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = add nsw i32 %10, 1
  %12 = zext i32 %11 to i64
  %13 = call ptr @llvm.stacksave.p0()
  %14 = alloca %class.dclass, i64 %12, align 16
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = add nsw i32 %15, 1
  %17 = zext i32 %16 to i64
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  %20 = zext i32 %19 to i64
  %21 = mul nuw i64 %20, %17
  %22 = alloca i32, i64 %21, align 16
  store i32 0, ptr %14, align 16, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %14, i64 4
  store i32 0, ptr %23, align 4, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %14, i64 8
  store i32 0, ptr %24, align 8, !tbaa !12
  %.not98 = icmp slt i32 %15, 1
  br i1 %.not98, label %.preheader92, label %.lr.ph

.preheader94:                                     ; preds = %.lr.ph
  %25 = icmp sgt i32 %38, 0
  br i1 %25, label %.preheader93, label %.preheader92

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %26 = getelementptr inbounds %class.dclass, ptr %14, i64 %indvars.iv
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  store i32 0, ptr %27, align 4, !tbaa !12
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %29 = trunc nuw nsw i64 %indvars.iv to i32
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %28, i32 noundef %29)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @.str.3)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %33, i32 noundef %29)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @.str.3)
  %36 = getelementptr inbounds i8, ptr %26, i64 4
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %36)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %.not.not = icmp slt i64 %indvars.iv, %39
  br i1 %.not.not, label %.lr.ph, label %.preheader94, !llvm.loop !13

.preheader93:                                     ; preds = %.preheader94, %._crit_edge
  %indvars.iv147 = phi i32 [ %indvars.iv.next148, %._crit_edge ], [ %38, %.preheader94 ]
  %.078102 = phi i32 [ %46, %._crit_edge ], [ 0, %.preheader94 ]
  %40 = icmp sgt i32 %38, %.078102
  br i1 %40, label %.lr.ph101.preheader, label %._crit_edge

.lr.ph101.preheader:                              ; preds = %.preheader93
  %wide.trip.count = zext i32 %indvars.iv147 to i64
  br label %.lr.ph101

.preheader92:                                     ; preds = %._crit_edge, %0, %.preheader94
  %41 = phi i32 [ %38, %.preheader94 ], [ %15, %0 ], [ %38, %._crit_edge ]
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %.not80103 = icmp slt i32 %42, 0
  br i1 %.not80103, label %.preheader91, label %.lr.ph105.preheader

.lr.ph105.preheader:                              ; preds = %.preheader92
  %43 = sext i32 %41 to i64
  %44 = add nuw i32 %42, 1
  %wide.trip.count153 = zext i32 %44 to i64
  %xtraiter = and i64 %wide.trip.count153, 1
  %45 = icmp eq i32 %42, 0
  br i1 %45, label %.preheader91.loopexit.unr-lcssa, label %.lr.ph105.preheader.new

.lr.ph105.preheader.new:                          ; preds = %.lr.ph105.preheader
  %unroll_iter = and i64 %wide.trip.count153, 4294967294
  br label %.lr.ph105

._crit_edge:                                      ; preds = %53, %.preheader93
  %46 = add nuw nsw i32 %.078102, 1
  %indvars.iv.next148 = add i32 %indvars.iv147, -1
  %exitcond149.not = icmp eq i32 %46, %38
  br i1 %exitcond149.not, label %.preheader92, label %.preheader93, !llvm.loop !15

.lr.ph101:                                        ; preds = %.lr.ph101.preheader, %53
  %indvars.iv144 = phi i64 [ 0, %.lr.ph101.preheader ], [ %indvars.iv.next145, %53 ]
  %47 = getelementptr inbounds %class.dclass, ptr %14, i64 %indvars.iv144
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %49 = getelementptr inbounds %class.dclass, ptr %14, i64 %indvars.iv.next145
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = icmp sgt i32 %48, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %.lr.ph101
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %47, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %49, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %49, ptr noundef nonnull align 4 dereferenceable(12) %3, i64 12, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3)
  br label %53

53:                                               ; preds = %.lr.ph101, %52
  %exitcond.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph101, !llvm.loop !17

.preheader91.loopexit.unr-lcssa:                  ; preds = %66, %.lr.ph105.preheader
  %indvars.iv150.unr = phi i64 [ 0, %.lr.ph105.preheader ], [ %indvars.iv.next151.1, %66 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader91, label %.lr.ph105.epil

.lr.ph105.epil:                                   ; preds = %.preheader91.loopexit.unr-lcssa
  %.not88.epil = icmp sgt i64 %indvars.iv150.unr, %43
  br i1 %.not88.epil, label %.preheader91.loopexit.epilog-lcssa, label %54

54:                                               ; preds = %.lr.ph105.epil
  %55 = mul nuw nsw i64 %indvars.iv150.unr, %20
  %56 = getelementptr inbounds i32, ptr %22, i64 %55
  store i32 0, ptr %56, align 4, !tbaa !5
  br label %.preheader91.loopexit.epilog-lcssa

.preheader91.loopexit.epilog-lcssa:               ; preds = %54, %.lr.ph105.epil
  %57 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv150.unr
  store i32 0, ptr %57, align 4, !tbaa !5
  br label %.preheader91

.preheader91:                                     ; preds = %.preheader91.loopexit.epilog-lcssa, %.preheader91.loopexit.unr-lcssa, %.preheader92
  %.not81110 = icmp slt i32 %41, 1
  %58 = icmp slt i32 %42, 1
  %or.cond = or i1 %.not81110, %58
  br i1 %or.cond, label %._crit_edge112, label %.preheader90

.lr.ph105:                                        ; preds = %66, %.lr.ph105.preheader.new
  %indvars.iv150 = phi i64 [ 0, %.lr.ph105.preheader.new ], [ %indvars.iv.next151.1, %66 ]
  %niter = phi i64 [ 0, %.lr.ph105.preheader.new ], [ %niter.next.1, %66 ]
  %.not88 = icmp sgt i64 %indvars.iv150, %43
  br i1 %.not88, label %.lr.ph105.1, label %59

59:                                               ; preds = %.lr.ph105
  %60 = mul nuw nsw i64 %indvars.iv150, %20
  %61 = getelementptr inbounds i32, ptr %22, i64 %60
  store i32 0, ptr %61, align 8, !tbaa !5
  br label %.lr.ph105.1

.lr.ph105.1:                                      ; preds = %59, %.lr.ph105
  %62 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv150
  store i32 0, ptr %62, align 8, !tbaa !5
  %indvars.iv.next151 = or disjoint i64 %indvars.iv150, 1
  %.not88.1.not = icmp slt i64 %indvars.iv150, %43
  br i1 %.not88.1.not, label %63, label %66

63:                                               ; preds = %.lr.ph105.1
  %64 = mul nuw nsw i64 %indvars.iv.next151, %20
  %65 = getelementptr inbounds i32, ptr %22, i64 %64
  store i32 0, ptr %65, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %63, %.lr.ph105.1
  %67 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv.next151
  store i32 0, ptr %67, align 4, !tbaa !5
  %indvars.iv.next151.1 = add nuw nsw i64 %indvars.iv150, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader91.loopexit.unr-lcssa, label %.lr.ph105, !llvm.loop !18

.preheader90:                                     ; preds = %.preheader91, %._crit_edge109
  %68 = phi i32 [ %80, %._crit_edge109 ], [ %41, %.preheader91 ]
  %69 = phi i32 [ %81, %._crit_edge109 ], [ %42, %.preheader91 ]
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %._crit_edge109 ], [ 1, %.preheader91 ]
  %.not87106 = icmp slt i32 %69, 1
  br i1 %.not87106, label %._crit_edge109, label %.lr.ph108

.lr.ph108:                                        ; preds = %.preheader90
  %70 = add nsw i64 %indvars.iv158, -1
  %71 = mul nuw nsw i64 %70, %20
  %72 = getelementptr inbounds i32, ptr %22, i64 %71
  %73 = getelementptr inbounds %class.dclass, ptr %14, i64 %indvars.iv158
  %74 = getelementptr inbounds i8, ptr %73, i64 4
  %75 = mul nuw nsw i64 %indvars.iv158, %20
  %76 = getelementptr inbounds i32, ptr %22, i64 %75
  br label %83

._crit_edge112:                                   ; preds = %._crit_edge109, %.preheader91
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @.str.5)
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %.not82117 = icmp slt i32 %79, 0
  br i1 %.not82117, label %._crit_edge112.._crit_edge119_crit_edge, label %.preheader89

._crit_edge112.._crit_edge119_crit_edge:          ; preds = %._crit_edge112
  %.pre178 = sext i32 %79 to i64
  br label %._crit_edge119

._crit_edge109.loopexit:                          ; preds = %96
  %.pre = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge109

._crit_edge109:                                   ; preds = %._crit_edge109.loopexit, %.preheader90
  %80 = phi i32 [ %.pre, %._crit_edge109.loopexit ], [ %68, %.preheader90 ]
  %81 = phi i32 [ %100, %._crit_edge109.loopexit ], [ %69, %.preheader90 ]
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %82 = sext i32 %80 to i64
  %.not81.not = icmp slt i64 %indvars.iv158, %82
  br i1 %.not81.not, label %.preheader90, label %._crit_edge112, !llvm.loop !19

83:                                               ; preds = %.lr.ph108, %96
  %indvars.iv155 = phi i64 [ 1, %.lr.ph108 ], [ %indvars.iv.next156, %96 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %84 = getelementptr inbounds i32, ptr %72, i64 %indvars.iv155
  %85 = load i32, ptr %84, align 4, !tbaa !5
  store i32 %85, ptr %4, align 4, !tbaa !5
  %86 = load i32, ptr %73, align 4, !tbaa !9
  %87 = trunc nuw nsw i64 %indvars.iv155 to i32
  %88 = sub nsw i32 %87, %86
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %89 = icmp slt i32 %88, 0
  br i1 %89, label %96, label %90

90:                                               ; preds = %83
  %91 = zext nneg i32 %88 to i64
  %92 = getelementptr inbounds i32, ptr %72, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = load i32, ptr %74, align 4, !tbaa !11
  %95 = add nsw i32 %94, %93
  br label %96

96:                                               ; preds = %83, %90
  %storemerge = phi i32 [ %95, %90 ], [ 0, %83 ]
  store i32 %storemerge, ptr %5, align 4, !tbaa !5
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = getelementptr inbounds i32, ptr %76, i64 %indvars.iv155
  store i32 %98, ptr %99, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %100 = load i32, ptr %2, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %.not87.not = icmp slt i64 %indvars.iv155, %101
  br i1 %.not87.not, label %83, label %._crit_edge109.loopexit, !llvm.loop !21

.preheader89:                                     ; preds = %._crit_edge112, %._crit_edge116
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %._crit_edge116 ], [ 0, %._crit_edge112 ]
  %102 = load i32, ptr %2, align 4, !tbaa !5
  %.not86113 = icmp slt i32 %102, 0
  br i1 %.not86113, label %._crit_edge116, label %.lr.ph115

.lr.ph115:                                        ; preds = %.preheader89
  %103 = mul nuw nsw i64 %indvars.iv164, %20
  %104 = getelementptr inbounds i32, ptr %22, i64 %103
  br label %115

._crit_edge119:                                   ; preds = %._crit_edge116, %._crit_edge112.._crit_edge119_crit_edge
  %.pre-phi = phi i64 [ %.pre178, %._crit_edge112.._crit_edge119_crit_edge ], [ %114, %._crit_edge116 ]
  %.lcssa96 = phi i32 [ %79, %._crit_edge112.._crit_edge119_crit_edge ], [ %113, %._crit_edge116 ]
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = mul nsw i64 %.pre-phi, %20
  %107 = getelementptr inbounds i32, ptr %22, i64 %106
  %108 = sext i32 %105 to i64
  %109 = getelementptr inbounds i32, ptr %107, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %.not83129 = icmp eq i32 %110, 0
  br i1 %.not83129, label %._crit_edge133, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge119
  %.not85121 = icmp slt i32 %105, 0
  %111 = add i32 %105, 1
  %wide.trip.count173 = zext i32 %111 to i64
  br label %.preheader

._crit_edge116:                                   ; preds = %115, %.preheader89
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %113 = load i32, ptr %1, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %.not82.not = icmp slt i64 %indvars.iv164, %114
  br i1 %.not82.not, label %.preheader89, label %._crit_edge119, !llvm.loop !22

115:                                              ; preds = %.lr.ph115, %115
  %indvars.iv161 = phi i64 [ 0, %.lr.ph115 ], [ %indvars.iv.next162, %115 ]
  %116 = getelementptr inbounds i32, ptr %104, i64 %indvars.iv161
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %117)
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @.str.6)
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %120 = load i32, ptr %2, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %.not86.not = icmp slt i64 %indvars.iv161, %121
  br i1 %.not86.not, label %115, label %._crit_edge116, !llvm.loop !23

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge125
  %.067132 = phi i32 [ %110, %.preheader.lr.ph ], [ %137, %._crit_edge125 ]
  %.068131 = phi i32 [ %105, %.preheader.lr.ph ], [ %.1, %._crit_edge125 ]
  %.069130 = phi i32 [ %.lcssa96, %.preheader.lr.ph ], [ %131, %._crit_edge125 ]
  %122 = sext i32 %.068131 to i64
  %123 = sext i32 %.069130 to i64
  br label %124

124:                                              ; preds = %.preheader, %124
  %indvars.iv167 = phi i64 [ %123, %.preheader ], [ %indvars.iv.next168, %124 ]
  %indvars.iv.next168 = add nsw i64 %indvars.iv167, -1
  %125 = mul nsw i64 %indvars.iv.next168, %20
  %126 = getelementptr inbounds i32, ptr %22, i64 %125
  %127 = getelementptr inbounds i32, ptr %126, i64 %122
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = icmp eq i32 %128, %.067132
  br i1 %129, label %124, label %130, !llvm.loop !24

130:                                              ; preds = %124
  %131 = trunc nsw i64 %indvars.iv.next168 to i32
  %sext = shl i64 %indvars.iv167, 32
  %132 = ashr exact i64 %sext, 32
  %133 = getelementptr inbounds %class.dclass, ptr %14, i64 %132
  %134 = getelementptr inbounds i8, ptr %133, i64 8
  store i32 1, ptr %134, align 4, !tbaa !12
  %135 = getelementptr inbounds i8, ptr %133, i64 4
  %136 = load i32, ptr %135, align 4, !tbaa !11
  %137 = sub nsw i32 %.067132, %136
  br i1 %.not85121, label %._crit_edge125, label %.lr.ph124

.lr.ph124:                                        ; preds = %130, %141
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %141 ], [ 0, %130 ]
  %138 = getelementptr inbounds i32, ptr %126, i64 %indvars.iv170
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = icmp eq i32 %139, %137
  br i1 %140, label %._crit_edge125.loopexit.split.loop.exit, label %141

141:                                              ; preds = %.lr.ph124
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %exitcond174.not = icmp eq i64 %indvars.iv.next171, %wide.trip.count173
  br i1 %exitcond174.not, label %._crit_edge125, label %.lr.ph124, !llvm.loop !25

._crit_edge125.loopexit.split.loop.exit:          ; preds = %.lr.ph124
  %142 = trunc nuw nsw i64 %indvars.iv170 to i32
  br label %._crit_edge125

._crit_edge125:                                   ; preds = %141, %._crit_edge125.loopexit.split.loop.exit, %130
  %.1 = phi i32 [ %.068131, %130 ], [ %142, %._crit_edge125.loopexit.split.loop.exit ], [ %.068131, %141 ]
  %.not83 = icmp eq i32 %137, 0
  br i1 %.not83, label %._crit_edge133, label %.preheader, !llvm.loop !26

._crit_edge133:                                   ; preds = %._crit_edge125, %._crit_edge119
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull @.str.8)
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull @.str.9)
  %146 = load i32, ptr %1, align 4, !tbaa !5
  %.not84134 = icmp slt i32 %146, 1
  br i1 %.not84134, label %._crit_edge138, label %.lr.ph137

._crit_edge138:                                   ; preds = %.lr.ph137, %._crit_edge133
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
  %148 = load i32, ptr %1, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = mul nsw i64 %149, %20
  %151 = getelementptr inbounds i32, ptr %22, i64 %150
  %152 = load i32, ptr %2, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i32, ptr %151, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %147, i32 noundef %155)
  call void @llvm.stackrestore.p0(ptr %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

.lr.ph137:                                        ; preds = %._crit_edge133, %.lr.ph137
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %.lr.ph137 ], [ 1, %._crit_edge133 ]
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
  %158 = getelementptr inbounds %class.dclass, ptr %14, i64 %indvars.iv175
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %157, i32 noundef %159)
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef nonnull @.str.10)
  %162 = getelementptr inbounds i8, ptr %158, i64 4
  %163 = load i32, ptr %162, align 4, !tbaa !11
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %161, i32 noundef %163)
  %165 = getelementptr inbounds i8, ptr %158, i64 8
  %166 = load i32, ptr %165, align 4, !tbaa !12
  %167 = icmp eq i32 %166, 1
  %.str.11..str.12 = select i1 %167, ptr @.str.11, ptr @.str.12
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.11..str.12)
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %170 = load i32, ptr %1, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %.not84.not = icmp slt i64 %indvars.iv175, %171
  br i1 %.not84.not, label %.lr.ph137, label %._crit_edge138, !llvm.loop !27
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

; 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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

attributes #0 = { mustprogress norecurse 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 willreturn }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { 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, !6, i64 0}
!10 = !{!"_ZTS6dclass", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14, !20}
!20 = !{!"llvm.loop.unswitch.partial.disable"}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass