; LLVM IR from AdarshGaur/Competitive-Programming :: Codechef/December Challenge 2021 Division 2/e.ll (Z5solvev)

; 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_istream" = type { ptr, i64, %"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_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %27 = load i64, ptr %1, align 8, !tbaa !5
  %28 = load i64, ptr %1, align 8, !tbaa !5
  %29 = call ptr @llvm.stacksave.p0()
  store ptr %29, ptr %2, align 8
  %30 = mul nuw i64 %27, %28
  %31 = alloca i64, i64 %30, align 16
  store i64 %27, ptr %3, align 8
  store i64 %28, ptr %4, align 8
  %32 = load i64, ptr %1, align 8, !tbaa !5
  %33 = load i64, ptr %1, align 8, !tbaa !5
  %34 = mul nuw i64 %32, %33
  %35 = alloca i64, i64 %34, align 16
  store i64 %32, ptr %5, align 8
  store i64 %33, ptr %6, align 8
  %36 = load i64, ptr %1, align 8, !tbaa !5
  %37 = load i64, ptr %1, align 8, !tbaa !5
  %38 = mul nuw i64 %36, %37
  %39 = alloca i64, i64 %38, align 16
  store i64 %36, ptr %7, align 8
  store i64 %37, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %78, %0
  %41 = load i64, ptr %9, align 8, !tbaa !5
  %42 = load i64, ptr %1, align 8, !tbaa !5
  %43 = icmp slt i64 %41, %42
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  %46 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %47 unwind label %53

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %70, %47
  %49 = load i64, ptr %14, align 8, !tbaa !5
  %50 = load i64, ptr %1, align 8, !tbaa !5
  %51 = icmp slt i64 %49, %50
  br i1 %51, label %57, label %52

52:                                               ; preds = %48
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %77

53:                                               ; preds = %45
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %12, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %13, align 4
  br label %81

57:                                               ; preds = %48
  %58 = load i64, ptr %14, align 8, !tbaa !5
  %59 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %58)
          to label %60 unwind label %73

60:                                               ; preds = %57
  %61 = load i8, ptr %59, align 1, !tbaa !9
  %62 = sext i8 %61 to i32
  %63 = sub nsw i32 %62, 48
  %64 = sext i32 %63 to i64
  %65 = load i64, ptr %9, align 8, !tbaa !5
  %66 = mul nsw i64 %65, %28
  %67 = getelementptr inbounds i64, ptr %31, i64 %66
  %68 = load i64, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds i64, ptr %67, i64 %68
  store i64 %64, ptr %69, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %60
  %71 = load i64, ptr %14, align 8, !tbaa !5
  %72 = add nsw i64 %71, 1
  store i64 %72, ptr %14, align 8, !tbaa !5
  br label %48, !llvm.loop !10

73:                                               ; preds = %57
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %12, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %81

77:                                               ; preds = %52
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  br label %78

78:                                               ; preds = %77
  %79 = load i64, ptr %9, align 8, !tbaa !5
  %80 = add nsw i64 %79, 1
  store i64 %80, ptr %9, align 8, !tbaa !5
  br label %40, !llvm.loop !12

81:                                               ; preds = %73, %53
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  br label %315

82:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !5
  br label %83

83:                                               ; preds = %102, %82
  %84 = load i64, ptr %15, align 8, !tbaa !5
  %85 = load i64, ptr %1, align 8, !tbaa !5
  %86 = icmp slt i64 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %105

88:                                               ; preds = %83
  %89 = load i64, ptr %1, align 8, !tbaa !5
  %90 = sub nsw i64 %89, 1
  %91 = mul nsw i64 %90, %28
  %92 = getelementptr inbounds i64, ptr %31, i64 %91
  %93 = load i64, ptr %15, align 8, !tbaa !5
  %94 = getelementptr inbounds i64, ptr %92, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !5
  %96 = load i64, ptr %1, align 8, !tbaa !5
  %97 = sub nsw i64 %96, 1
  %98 = mul nsw i64 %97, %33
  %99 = getelementptr inbounds i64, ptr %35, i64 %98
  %100 = load i64, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds i64, ptr %99, i64 %100
  store i64 %95, ptr %101, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %88
  %103 = load i64, ptr %15, align 8, !tbaa !5
  %104 = add nsw i64 %103, 1
  store i64 %104, ptr %15, align 8, !tbaa !5
  br label %83, !llvm.loop !13

105:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %106 = load i64, ptr %1, align 8, !tbaa !5
  %107 = sub nsw i64 %106, 2
  store i64 %107, ptr %16, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %150, %105
  %109 = load i64, ptr %16, align 8, !tbaa !5
  %110 = icmp sge i64 %109, 0
  br i1 %110, label %112, label %111

111:                                              ; preds = %108
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %153

112:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %146, %112
  %114 = load i64, ptr %17, align 8, !tbaa !5
  %115 = load i64, ptr %1, align 8, !tbaa !5
  %116 = icmp slt i64 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %149

118:                                              ; preds = %113
  %119 = load i64, ptr %16, align 8, !tbaa !5
  %120 = add nsw i64 %119, 1
  %121 = mul nsw i64 %120, %33
  %122 = getelementptr inbounds i64, ptr %35, i64 %121
  %123 = load i64, ptr %17, align 8, !tbaa !5
  %124 = getelementptr inbounds i64, ptr %122, i64 %123
  %125 = load i64, ptr %124, align 8, !tbaa !5
  %126 = add nsw i64 %125, 1
  %127 = load i64, ptr %16, align 8, !tbaa !5
  %128 = mul nsw i64 %127, %33
  %129 = getelementptr inbounds i64, ptr %35, i64 %128
  %130 = load i64, ptr %17, align 8, !tbaa !5
  %131 = getelementptr inbounds i64, ptr %129, i64 %130
  store i64 %126, ptr %131, align 8, !tbaa !5
  %132 = load i64, ptr %16, align 8, !tbaa !5
  %133 = mul nsw i64 %132, %28
  %134 = getelementptr inbounds i64, ptr %31, i64 %133
  %135 = load i64, ptr %17, align 8, !tbaa !5
  %136 = getelementptr inbounds i64, ptr %134, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !5
  %138 = icmp ne i64 %137, 0
  br i1 %138, label %145, label %139

139:                                              ; preds = %118
  %140 = load i64, ptr %16, align 8, !tbaa !5
  %141 = mul nsw i64 %140, %33
  %142 = getelementptr inbounds i64, ptr %35, i64 %141
  %143 = load i64, ptr %17, align 8, !tbaa !5
  %144 = getelementptr inbounds i64, ptr %142, i64 %143
  store i64 0, ptr %144, align 8, !tbaa !5
  br label %145

145:                                              ; preds = %139, %118
  br label %146

146:                                              ; preds = %145
  %147 = load i64, ptr %17, align 8, !tbaa !5
  %148 = add nsw i64 %147, 1
  store i64 %148, ptr %17, align 8, !tbaa !5
  br label %113, !llvm.loop !14

149:                                              ; preds = %117
  br label %150

150:                                              ; preds = %149
  %151 = load i64, ptr %16, align 8, !tbaa !5
  %152 = add nsw i64 %151, -1
  store i64 %152, ptr %16, align 8, !tbaa !5
  br label %108, !llvm.loop !15

153:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %173, %153
  %155 = load i64, ptr %18, align 8, !tbaa !5
  %156 = load i64, ptr %1, align 8, !tbaa !5
  %157 = icmp slt i64 %155, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %154
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %176

159:                                              ; preds = %154
  %160 = load i64, ptr %18, align 8, !tbaa !5
  %161 = mul nsw i64 %160, %28
  %162 = getelementptr inbounds i64, ptr %31, i64 %161
  %163 = load i64, ptr %1, align 8, !tbaa !5
  %164 = sub nsw i64 %163, 1
  %165 = getelementptr inbounds i64, ptr %162, i64 %164
  %166 = load i64, ptr %165, align 8, !tbaa !5
  %167 = load i64, ptr %18, align 8, !tbaa !5
  %168 = mul nsw i64 %167, %37
  %169 = getelementptr inbounds i64, ptr %39, i64 %168
  %170 = load i64, ptr %1, align 8, !tbaa !5
  %171 = sub nsw i64 %170, 1
  %172 = getelementptr inbounds i64, ptr %169, i64 %171
  store i64 %166, ptr %172, align 8, !tbaa !5
  br label %173

173:                                              ; preds = %159
  %174 = load i64, ptr %18, align 8, !tbaa !5
  %175 = add nsw i64 %174, 1
  store i64 %175, ptr %18, align 8, !tbaa !5
  br label %154, !llvm.loop !16

176:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %177 = load i64, ptr %1, align 8, !tbaa !5
  %178 = sub nsw i64 %177, 2
  store i64 %178, ptr %19, align 8, !tbaa !5
  br label %179

179:                                              ; preds = %221, %176
  %180 = load i64, ptr %19, align 8, !tbaa !5
  %181 = icmp sge i64 %180, 0
  br i1 %181, label %183, label %182

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

183:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store i64 0, ptr %20, align 8, !tbaa !5
  br label %184

184:                                              ; preds = %217, %183
  %185 = load i64, ptr %20, align 8, !tbaa !5
  %186 = load i64, ptr %1, align 8, !tbaa !5
  %187 = icmp slt i64 %185, %186
  br i1 %187, label %189, label %188

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

189:                                              ; preds = %184
  %190 = load i64, ptr %20, align 8, !tbaa !5
  %191 = mul nsw i64 %190, %37
  %192 = getelementptr inbounds i64, ptr %39, i64 %191
  %193 = load i64, ptr %19, align 8, !tbaa !5
  %194 = add nsw i64 %193, 1
  %195 = getelementptr inbounds i64, ptr %192, i64 %194
  %196 = load i64, ptr %195, align 8, !tbaa !5
  %197 = add nsw i64 %196, 1
  %198 = load i64, ptr %20, align 8, !tbaa !5
  %199 = mul nsw i64 %198, %37
  %200 = getelementptr inbounds i64, ptr %39, i64 %199
  %201 = load i64, ptr %19, align 8, !tbaa !5
  %202 = getelementptr inbounds i64, ptr %200, i64 %201
  store i64 %197, ptr %202, align 8, !tbaa !5
  %203 = load i64, ptr %20, align 8, !tbaa !5
  %204 = mul nsw i64 %203, %28
  %205 = getelementptr inbounds i64, ptr %31, i64 %204
  %206 = load i64, ptr %19, align 8, !tbaa !5
  %207 = getelementptr inbounds i64, ptr %205, i64 %206
  %208 = load i64, ptr %207, align 8, !tbaa !5
  %209 = icmp ne i64 %208, 0
  br i1 %209, label %216, label %210

210:                                              ; preds = %189
  %211 = load i64, ptr %20, align 8, !tbaa !5
  %212 = mul nsw i64 %211, %37
  %213 = getelementptr inbounds i64, ptr %39, i64 %212
  %214 = load i64, ptr %19, align 8, !tbaa !5
  %215 = getelementptr inbounds i64, ptr %213, i64 %214
  store i64 0, ptr %215, align 8, !tbaa !5
  br label %216

216:                                              ; preds = %210, %189
  br label %217

217:                                              ; preds = %216
  %218 = load i64, ptr %20, align 8, !tbaa !5
  %219 = add nsw i64 %218, 1
  store i64 %219, ptr %20, align 8, !tbaa !5
  br label %184, !llvm.loop !17

220:                                              ; preds = %188
  br label %221

221:                                              ; preds = %220
  %222 = load i64, ptr %19, align 8, !tbaa !5
  %223 = add nsw i64 %222, -1
  store i64 %223, ptr %19, align 8, !tbaa !5
  br label %179, !llvm.loop !18

224:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store i64 0, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store i64 0, ptr %22, align 8, !tbaa !5
  br label %225

225:                                              ; preds = %307, %224
  %226 = load i64, ptr %22, align 8, !tbaa !5
  %227 = load i64, ptr %1, align 8, !tbaa !5
  %228 = icmp slt i64 %226, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %225
  store i32 26, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %310

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

231:                                              ; preds = %303, %230
  %232 = load i64, ptr %23, align 8, !tbaa !5
  %233 = load i64, ptr %1, align 8, !tbaa !5
  %234 = icmp slt i64 %232, %233
  br i1 %234, label %236, label %235

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

236:                                              ; preds = %231
  %237 = load i64, ptr %22, align 8, !tbaa !5
  %238 = mul nsw i64 %237, %28
  %239 = getelementptr inbounds i64, ptr %31, i64 %238
  %240 = load i64, ptr %23, align 8, !tbaa !5
  %241 = getelementptr inbounds i64, ptr %239, i64 %240
  %242 = load i64, ptr %241, align 8, !tbaa !5
  %243 = icmp ne i64 %242, 0
  br i1 %243, label %245, label %244

244:                                              ; preds = %236
  br label %303

245:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %247 = load i64, ptr %246, align 8, !tbaa !5
  store i64 %247, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store i64 0, ptr %25, align 8, !tbaa !5
  br label %248

248:                                              ; preds = %299, %245
  %249 = load i64, ptr %25, align 8, !tbaa !5
  %250 = load i64, ptr %1, align 8, !tbaa !5
  %251 = load i64, ptr %24, align 8, !tbaa !5
  %252 = sub nsw i64 %250, %251
  %253 = icmp slt i64 %249, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %248
  store i32 32, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %302

255:                                              ; preds = %248
  %256 = load i64, ptr %22, align 8, !tbaa !5
  %257 = mul nsw i64 %256, %33
  %258 = getelementptr inbounds i64, ptr %35, i64 %257
  %259 = load i64, ptr %23, align 8, !tbaa !5
  %260 = getelementptr inbounds i64, ptr %258, i64 %259
  %261 = load i64, ptr %260, align 8, !tbaa !5
  %262 = load i64, ptr %25, align 8, !tbaa !5
  %263 = icmp sgt i64 %261, %262
  br i1 %263, label %264, label %298

264:                                              ; preds = %255
  %265 = load i64, ptr %22, align 8, !tbaa !5
  %266 = mul nsw i64 %265, %37
  %267 = getelementptr inbounds i64, ptr %39, i64 %266
  %268 = load i64, ptr %23, align 8, !tbaa !5
  %269 = getelementptr inbounds i64, ptr %267, i64 %268
  %270 = load i64, ptr %269, align 8, !tbaa !5
  %271 = load i64, ptr %25, align 8, !tbaa !5
  %272 = icmp sgt i64 %270, %271
  br i1 %272, label %273, label %298

273:                                              ; preds = %264
  %274 = load i64, ptr %22, align 8, !tbaa !5
  %275 = mul nsw i64 %274, %33
  %276 = getelementptr inbounds i64, ptr %35, i64 %275
  %277 = load i64, ptr %23, align 8, !tbaa !5
  %278 = load i64, ptr %25, align 8, !tbaa !5
  %279 = add nsw i64 %277, %278
  %280 = getelementptr inbounds i64, ptr %276, i64 %279
  %281 = load i64, ptr %280, align 8, !tbaa !5
  %282 = load i64, ptr %25, align 8, !tbaa !5
  %283 = icmp sgt i64 %281, %282
  br i1 %283, label %284, label %298

284:                                              ; preds = %273
  %285 = load i64, ptr %22, align 8, !tbaa !5
  %286 = load i64, ptr %25, align 8, !tbaa !5
  %287 = add nsw i64 %285, %286
  %288 = mul nsw i64 %287, %37
  %289 = getelementptr inbounds i64, ptr %39, i64 %288
  %290 = load i64, ptr %23, align 8, !tbaa !5
  %291 = getelementptr inbounds i64, ptr %289, i64 %290
  %292 = load i64, ptr %291, align 8, !tbaa !5
  %293 = load i64, ptr %25, align 8, !tbaa !5
  %294 = icmp sgt i64 %292, %293
  br i1 %294, label %295, label %298

295:                                              ; preds = %284
  %296 = load i64, ptr %21, align 8, !tbaa !5
  %297 = add nsw i64 %296, 1
  store i64 %297, ptr %21, align 8, !tbaa !5
  br label %298

298:                                              ; preds = %295, %284, %273, %264, %255
  br label %299

299:                                              ; preds = %298
  %300 = load i64, ptr %25, align 8, !tbaa !5
  %301 = add nsw i64 %300, 1
  store i64 %301, ptr %25, align 8, !tbaa !5
  br label %248, !llvm.loop !19

302:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %303

303:                                              ; preds = %302, %244
  %304 = load i64, ptr %23, align 8, !tbaa !5
  %305 = add nsw i64 %304, 1
  store i64 %305, ptr %23, align 8, !tbaa !5
  br label %231, !llvm.loop !20

306:                                              ; preds = %235
  br label %307

307:                                              ; preds = %306
  %308 = load i64, ptr %22, align 8, !tbaa !5
  %309 = add nsw i64 %308, 1
  store i64 %309, ptr %22, align 8, !tbaa !5
  br label %225, !llvm.loop !21

310:                                              ; preds = %229
  %311 = load i64, ptr %21, align 8, !tbaa !5
  %312 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %311)
  %313 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %312, ptr noundef @.str)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  %314 = load ptr, ptr %2, align 8
  call void @llvm.stackrestore.p0(ptr %314)
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  ret void

315:                                              ; preds = %81
  %316 = load ptr, ptr %12, align 8
  %317 = load i32, ptr %13, 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 uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

; 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) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}


; 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_istream" = type { ptr, i64, %"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_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = call ptr @llvm.stacksave.p0()
  %8 = mul nuw i64 %6, %6
  %9 = alloca i64, i64 %8, align 16
  %10 = load i64, ptr %1, align 8, !tbaa !5
  %11 = mul nuw i64 %10, %10
  %12 = alloca i64, i64 %11, align 16
  %13 = alloca i64, i64 %11, align 16
  %14 = icmp sgt i64 %10, 0
  br i1 %14, label %.lr.ph79, label %._crit_edge99.thread

.preheader73:                                     ; preds = %._crit_edge
  %15 = icmp sgt i64 %22, 0
  br i1 %15, label %._crit_edge82, label %._crit_edge99.thread

.lr.ph79:                                         ; preds = %0, %._crit_edge
  %.05277 = phi i64 [ %21, %._crit_edge ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %.preheader74 unwind label %24

.preheader74:                                     ; preds = %.lr.ph79
  %17 = load i64, ptr %1, align 8, !tbaa !5
  %18 = icmp sgt i64 %17, 0
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader74
  %19 = mul nsw i64 %.05277, %6
  %20 = getelementptr inbounds i64, ptr %9, i64 %19
  br label %26

._crit_edge:                                      ; preds = %26, %.preheader74
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  %21 = add nuw nsw i64 %.05277, 1
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %23 = icmp slt i64 %21, %22
  br i1 %23, label %.lr.ph79, label %.preheader73, !llvm.loop !9

24:                                               ; preds = %.lr.ph79
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %25

26:                                               ; preds = %.lr.ph, %26
  %.06076 = phi i64 [ 0, %.lr.ph ], [ %32, %26 ]
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %.06076)
  %28 = load i8, ptr %27, align 1, !tbaa !11
  %29 = sext i8 %28 to i64
  %30 = add nsw i64 %29, -48
  %31 = getelementptr inbounds i64, ptr %20, i64 %.06076
  store i64 %30, ptr %31, align 8, !tbaa !5
  %32 = add nuw nsw i64 %.06076, 1
  %33 = load i64, ptr %1, align 8, !tbaa !5
  %34 = icmp slt i64 %32, %33
  br i1 %34, label %26, label %._crit_edge, !llvm.loop !12

._crit_edge99.thread:                             ; preds = %.preheader73, %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  br label %._crit_edge116

._crit_edge82:                                    ; preds = %.preheader73
  %35 = add nsw i64 %22, -1
  %36 = mul nsw i64 %35, %6
  %37 = getelementptr inbounds i64, ptr %9, i64 %36
  %38 = mul nsw i64 %35, %10
  %39 = getelementptr inbounds i64, ptr %12, i64 %38
  %40 = shl nuw i64 %22, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %39, ptr nonnull align 8 %37, i64 %40, i1 false), !tbaa !5
  %41 = add nsw i64 %22, -2
  %42 = icmp ne i64 %22, 1
  br i1 %42, label %.preheader72.us.preheader, label %.lr.ph88

.preheader72.us.preheader:                        ; preds = %._crit_edge82
  %43 = mul i64 %10, -8
  %min.iters.check = icmp ult i64 %22, 4
  %diff.check = icmp ult i64 %43, 32
  %or.cond = or i1 %min.iters.check, %diff.check
  %n.vec = and i64 %22, 9223372036854775804
  %cmp.n = icmp eq i64 %22, %n.vec
  %xtraiter = and i64 %22, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader72.us

.preheader72.us:                                  ; preds = %.preheader72.us.preheader, %._crit_edge85.us
  %.05886.us = phi i64 [ %86, %._crit_edge85.us ], [ %41, %.preheader72.us.preheader ]
  %44 = add nuw nsw i64 %.05886.us, 1
  %45 = mul nsw i64 %44, %10
  %46 = getelementptr inbounds i64, ptr %12, i64 %45
  %47 = mul nsw i64 %.05886.us, %10
  %48 = getelementptr inbounds i64, ptr %12, i64 %47
  %49 = mul nsw i64 %.05886.us, %6
  %50 = getelementptr inbounds i64, ptr %9, i64 %49
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader72.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader72.us ]
  %51 = getelementptr inbounds i64, ptr %46, i64 %index
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %wide.load = load <2 x i64>, ptr %51, align 8, !tbaa !5
  %wide.load131 = load <2 x i64>, ptr %52, align 8, !tbaa !5
  %53 = add nsw <2 x i64> %wide.load, <i64 1, i64 1>
  %54 = add nsw <2 x i64> %wide.load131, <i64 1, i64 1>
  %55 = getelementptr inbounds i64, ptr %48, i64 %index
  %56 = getelementptr inbounds i64, ptr %50, i64 %index
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %wide.load132 = load <2 x i64>, ptr %56, align 8, !tbaa !5
  %wide.load133 = load <2 x i64>, ptr %57, align 8, !tbaa !5
  %58 = icmp eq <2 x i64> %wide.load132, zeroinitializer
  %59 = icmp eq <2 x i64> %wide.load133, zeroinitializer
  %60 = select <2 x i1> %58, <2 x i64> zeroinitializer, <2 x i64> %53
  %61 = select <2 x i1> %59, <2 x i64> zeroinitializer, <2 x i64> %54
  %62 = getelementptr inbounds i8, ptr %55, i64 16
  store <2 x i64> %60, ptr %55, align 8
  store <2 x i64> %61, ptr %62, align 8
  %index.next = add nuw i64 %index, 4
  %63 = icmp eq i64 %index.next, %n.vec
  br i1 %63, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge85.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader72.us
  %.05783.us.ph = phi i64 [ 0, %.preheader72.us ], [ %n.vec, %middle.block ]
  %.neg = or disjoint i64 %.05783.us.ph, 1
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %64 = getelementptr inbounds i64, ptr %46, i64 %.05783.us.ph
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = add nsw i64 %65, 1
  %67 = getelementptr inbounds i64, ptr %48, i64 %.05783.us.ph
  %68 = getelementptr inbounds i64, ptr %50, i64 %.05783.us.ph
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %.not68.us.prol = icmp eq i64 %69, 0
  %spec.store.select.us.prol = select i1 %.not68.us.prol, i64 0, i64 %66
  store i64 %spec.store.select.us.prol, ptr %67, align 8
  %70 = or disjoint i64 %.05783.us.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.05783.us.unr = phi i64 [ %.05783.us.ph, %scalar.ph.preheader ], [ %70, %scalar.ph.prol ]
  %71 = icmp eq i64 %22, %.neg
  br i1 %71, label %._crit_edge85.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.05783.us = phi i64 [ %85, %scalar.ph ], [ %.05783.us.unr, %scalar.ph.prol.loopexit ]
  %72 = getelementptr inbounds i64, ptr %46, i64 %.05783.us
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = add nsw i64 %73, 1
  %75 = getelementptr inbounds i64, ptr %48, i64 %.05783.us
  %76 = getelementptr inbounds i64, ptr %50, i64 %.05783.us
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %.not68.us = icmp eq i64 %77, 0
  %spec.store.select.us = select i1 %.not68.us, i64 0, i64 %74
  store i64 %spec.store.select.us, ptr %75, align 8
  %78 = add nuw nsw i64 %.05783.us, 1
  %79 = getelementptr inbounds i64, ptr %46, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !5
  %81 = add nsw i64 %80, 1
  %82 = getelementptr inbounds i64, ptr %48, i64 %78
  %83 = getelementptr inbounds i64, ptr %50, i64 %78
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %.not68.us.1 = icmp eq i64 %84, 0
  %spec.store.select.us.1 = select i1 %.not68.us.1, i64 0, i64 %81
  store i64 %spec.store.select.us.1, ptr %82, align 8
  %85 = add nuw nsw i64 %.05783.us, 2
  %exitcond.not.1 = icmp eq i64 %85, %22
  br i1 %exitcond.not.1, label %._crit_edge85.us, label %scalar.ph, !llvm.loop !16

._crit_edge85.us:                                 ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %86 = add nsw i64 %.05886.us, -1
  %87 = icmp sgt i64 %.05886.us, 0
  br i1 %87, label %.preheader72.us, label %.preheader71, !llvm.loop !17

.preheader71:                                     ; preds = %._crit_edge85.us
  br i1 %15, label %.lr.ph88, label %.preheader70

.lr.ph88:                                         ; preds = %._crit_edge82, %.preheader71
  %88 = phi i64 [ %22, %.preheader71 ], [ 1, %._crit_edge82 ]
  %89 = phi i64 [ %41, %.preheader71 ], [ -1, %._crit_edge82 ]
  %90 = phi i1 [ %42, %.preheader71 ], [ false, %._crit_edge82 ]
  %91 = add nsw i64 %88, -1
  %invariant.gep = getelementptr i64, ptr %9, i64 %91
  %invariant.gep89 = getelementptr i64, ptr %13, i64 %91
  %min.iters.check137 = icmp ult i64 %88, 8
  br i1 %min.iters.check137, label %scalar.ph136.preheader, label %vector.scevcheck

scalar.ph136.preheader:                           ; preds = %middle.block135, %vector.scevcheck, %.lr.ph88
  %.05687.ph = phi i64 [ 0, %vector.scevcheck ], [ 0, %.lr.ph88 ], [ %n.vec140, %middle.block135 ]
  %xtraiter167 = and i64 %88, 3
  %lcmp.mod168.not = icmp eq i64 %xtraiter167, 0
  br i1 %lcmp.mod168.not, label %scalar.ph136.prol.loopexit, label %scalar.ph136.prol

scalar.ph136.prol:                                ; preds = %scalar.ph136.preheader, %scalar.ph136.prol
  %.05687.prol = phi i64 [ %95, %scalar.ph136.prol ], [ %.05687.ph, %scalar.ph136.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph136.prol ], [ 0, %scalar.ph136.preheader ]
  %92 = mul nsw i64 %.05687.prol, %6
  %gep.prol = getelementptr i64, ptr %invariant.gep, i64 %92
  %93 = load i64, ptr %gep.prol, align 8, !tbaa !5
  %94 = mul nuw nsw i64 %.05687.prol, %10
  %gep90.prol = getelementptr i64, ptr %invariant.gep89, i64 %94
  store i64 %93, ptr %gep90.prol, align 8, !tbaa !5
  %95 = add nuw nsw i64 %.05687.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter167
  br i1 %prol.iter.cmp.not, label %scalar.ph136.prol.loopexit, label %scalar.ph136.prol, !llvm.loop !18

scalar.ph136.prol.loopexit:                       ; preds = %scalar.ph136.prol, %scalar.ph136.preheader
  %.05687.unr = phi i64 [ %.05687.ph, %scalar.ph136.preheader ], [ %95, %scalar.ph136.prol ]
  %96 = sub nsw i64 %.05687.ph, %88
  %97 = icmp ugt i64 %96, -4
  br i1 %97, label %.preheader70, label %scalar.ph136

vector.scevcheck:                                 ; preds = %.lr.ph88
  %ident.check = icmp ne i64 %6, 1
  %ident.check134 = icmp ne i64 %10, 1
  %98 = or i1 %ident.check, %ident.check134
  br i1 %98, label %scalar.ph136.preheader, label %vector.ph138

vector.ph138:                                     ; preds = %vector.scevcheck
  %n.vec140 = and i64 %88, 9223372036854775804
  br label %vector.body142

vector.body142:                                   ; preds = %vector.body142, %vector.ph138
  %index143 = phi i64 [ 0, %vector.ph138 ], [ %index.next146, %vector.body142 ]
  %99 = getelementptr i64, ptr %invariant.gep, i64 %index143
  %100 = getelementptr i8, ptr %99, i64 16
  %wide.load144 = load <2 x i64>, ptr %99, align 8, !tbaa !5
  %wide.load145 = load <2 x i64>, ptr %100, align 8, !tbaa !5
  %101 = getelementptr i64, ptr %invariant.gep89, i64 %index143
  %102 = getelementptr i8, ptr %101, i64 16
  store <2 x i64> %wide.load144, ptr %101, align 8, !tbaa !5
  store <2 x i64> %wide.load145, ptr %102, align 8, !tbaa !5
  %index.next146 = add nuw i64 %index143, 4
  %103 = icmp eq i64 %index.next146, %n.vec140
  br i1 %103, label %middle.block135, label %vector.body142, !llvm.loop !20

middle.block135:                                  ; preds = %vector.body142
  %cmp.n147 = icmp eq i64 %88, %n.vec140
  br i1 %cmp.n147, label %.preheader70, label %scalar.ph136.preheader

.preheader70:                                     ; preds = %scalar.ph136.prol.loopexit, %scalar.ph136, %middle.block135, %.preheader71
  %104 = phi i1 [ false, %.preheader71 ], [ true, %middle.block135 ], [ true, %scalar.ph136 ], [ true, %scalar.ph136.prol.loopexit ]
  %105 = phi i64 [ %22, %.preheader71 ], [ %88, %middle.block135 ], [ %88, %scalar.ph136 ], [ %88, %scalar.ph136.prol.loopexit ]
  %106 = phi i64 [ %41, %.preheader71 ], [ %89, %middle.block135 ], [ %89, %scalar.ph136 ], [ %89, %scalar.ph136.prol.loopexit ]
  %107 = phi i1 [ %42, %.preheader71 ], [ %90, %middle.block135 ], [ %90, %scalar.ph136 ], [ %90, %scalar.ph136.prol.loopexit ]
  br i1 %107, label %.preheader.us.preheader, label %._crit_edge99

.preheader.us.preheader:                          ; preds = %.preheader70
  %min.iters.check153 = icmp ult i64 %105, 4
  %ident.check149 = icmp ne i64 %10, 1
  %ident.check150 = icmp ne i64 %6, 1
  %108 = or i1 %ident.check149, %ident.check150
  %n.vec156 = and i64 %105, -4
  %cmp.n165 = icmp eq i64 %105, %n.vec156
  %xtraiter169 = and i64 %105, 1
  %lcmp.mod170.not = icmp eq i64 %xtraiter169, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge97.us
  %.05598.us = phi i64 [ %144, %._crit_edge97.us ], [ %106, %.preheader.us.preheader ]
  %invariant.gep91.us = getelementptr i64, ptr %13, i64 %.05598.us
  %invariant.gep93.us = getelementptr i64, ptr %9, i64 %.05598.us
  %brmerge = select i1 %min.iters.check153, i1 true, i1 %108
  br i1 %brmerge, label %scalar.ph152.preheader, label %vector.body158

vector.body158:                                   ; preds = %.preheader.us, %vector.body158
  %index159 = phi i64 [ %index.next164, %vector.body158 ], [ 0, %.preheader.us ]
  %109 = getelementptr i64, ptr %invariant.gep91.us, i64 %index159
  %110 = getelementptr inbounds i8, ptr %109, i64 8
  %111 = getelementptr inbounds i8, ptr %109, i64 24
  %wide.load160 = load <2 x i64>, ptr %110, align 8, !tbaa !5
  %wide.load161 = load <2 x i64>, ptr %111, align 8, !tbaa !5
  %112 = add nsw <2 x i64> %wide.load160, <i64 1, i64 1>
  %113 = add nsw <2 x i64> %wide.load161, <i64 1, i64 1>
  %114 = getelementptr i64, ptr %invariant.gep93.us, i64 %index159
  %115 = getelementptr i8, ptr %114, i64 16
  %wide.load162 = load <2 x i64>, ptr %114, align 8, !tbaa !5
  %wide.load163 = load <2 x i64>, ptr %115, align 8, !tbaa !5
  %116 = icmp eq <2 x i64> %wide.load162, zeroinitializer
  %117 = icmp eq <2 x i64> %wide.load163, zeroinitializer
  %118 = select <2 x i1> %116, <2 x i64> zeroinitializer, <2 x i64> %112
  %119 = select <2 x i1> %117, <2 x i64> zeroinitializer, <2 x i64> %113
  %120 = getelementptr i8, ptr %109, i64 16
  store <2 x i64> %118, ptr %109, align 8
  store <2 x i64> %119, ptr %120, align 8
  %index.next164 = add nuw i64 %index159, 4
  %121 = icmp eq i64 %index.next164, %n.vec156
  br i1 %121, label %middle.block151, label %vector.body158, !llvm.loop !21

middle.block151:                                  ; preds = %vector.body158
  br i1 %cmp.n165, label %._crit_edge97.us, label %scalar.ph152.preheader

scalar.ph152.preheader:                           ; preds = %.preheader.us, %middle.block151
  %.05495.us.ph = phi i64 [ 0, %.preheader.us ], [ %n.vec156, %middle.block151 ]
  %.neg172 = or disjoint i64 %.05495.us.ph, 1
  br i1 %lcmp.mod170.not, label %scalar.ph152.prol.loopexit, label %scalar.ph152.prol

scalar.ph152.prol:                                ; preds = %scalar.ph152.preheader
  %122 = mul nuw nsw i64 %.05495.us.ph, %10
  %gep92.us.prol = getelementptr i64, ptr %invariant.gep91.us, i64 %122
  %123 = getelementptr inbounds i8, ptr %gep92.us.prol, i64 8
  %124 = load i64, ptr %123, align 8, !tbaa !5
  %125 = add nsw i64 %124, 1
  %126 = mul nsw i64 %.05495.us.ph, %6
  %gep94.us.prol = getelementptr i64, ptr %invariant.gep93.us, i64 %126
  %127 = load i64, ptr %gep94.us.prol, align 8, !tbaa !5
  %.not67.us.prol = icmp eq i64 %127, 0
  %spec.store.select69.us.prol = select i1 %.not67.us.prol, i64 0, i64 %125
  store i64 %spec.store.select69.us.prol, ptr %gep92.us.prol, align 8
  %128 = or disjoint i64 %.05495.us.ph, 1
  br label %scalar.ph152.prol.loopexit

scalar.ph152.prol.loopexit:                       ; preds = %scalar.ph152.prol, %scalar.ph152.preheader
  %.05495.us.unr = phi i64 [ %.05495.us.ph, %scalar.ph152.preheader ], [ %128, %scalar.ph152.prol ]
  %129 = icmp eq i64 %105, %.neg172
  br i1 %129, label %._crit_edge97.us, label %scalar.ph152

scalar.ph152:                                     ; preds = %scalar.ph152.prol.loopexit, %scalar.ph152
  %.05495.us = phi i64 [ %143, %scalar.ph152 ], [ %.05495.us.unr, %scalar.ph152.prol.loopexit ]
  %130 = mul nuw nsw i64 %.05495.us, %10
  %gep92.us = getelementptr i64, ptr %invariant.gep91.us, i64 %130
  %131 = getelementptr inbounds i8, ptr %gep92.us, i64 8
  %132 = load i64, ptr %131, align 8, !tbaa !5
  %133 = add nsw i64 %132, 1
  %134 = mul nsw i64 %.05495.us, %6
  %gep94.us = getelementptr i64, ptr %invariant.gep93.us, i64 %134
  %135 = load i64, ptr %gep94.us, align 8, !tbaa !5
  %.not67.us = icmp eq i64 %135, 0
  %spec.store.select69.us = select i1 %.not67.us, i64 0, i64 %133
  store i64 %spec.store.select69.us, ptr %gep92.us, align 8
  %136 = add nuw nsw i64 %.05495.us, 1
  %137 = mul nuw nsw i64 %136, %10
  %gep92.us.1 = getelementptr i64, ptr %invariant.gep91.us, i64 %137
  %138 = getelementptr inbounds i8, ptr %gep92.us.1, i64 8
  %139 = load i64, ptr %138, align 8, !tbaa !5
  %140 = add nsw i64 %139, 1
  %141 = mul nsw i64 %136, %6
  %gep94.us.1 = getelementptr i64, ptr %invariant.gep93.us, i64 %141
  %142 = load i64, ptr %gep94.us.1, align 8, !tbaa !5
  %.not67.us.1 = icmp eq i64 %142, 0
  %spec.store.select69.us.1 = select i1 %.not67.us.1, i64 0, i64 %140
  store i64 %spec.store.select69.us.1, ptr %gep92.us.1, align 8
  %143 = add nuw nsw i64 %.05495.us, 2
  %exitcond124.not.1 = icmp eq i64 %143, %105
  br i1 %exitcond124.not.1, label %._crit_edge97.us, label %scalar.ph152, !llvm.loop !22

._crit_edge97.us:                                 ; preds = %scalar.ph152.prol.loopexit, %scalar.ph152, %middle.block151
  %144 = add nsw i64 %.05598.us, -1
  %145 = icmp sgt i64 %.05598.us, 0
  br i1 %145, label %.preheader.us, label %._crit_edge99, !llvm.loop !23

scalar.ph136:                                     ; preds = %scalar.ph136.prol.loopexit, %scalar.ph136
  %.05687 = phi i64 [ %161, %scalar.ph136 ], [ %.05687.unr, %scalar.ph136.prol.loopexit ]
  %146 = mul nsw i64 %.05687, %6
  %gep = getelementptr i64, ptr %invariant.gep, i64 %146
  %147 = load i64, ptr %gep, align 8, !tbaa !5
  %148 = mul nuw nsw i64 %.05687, %10
  %gep90 = getelementptr i64, ptr %invariant.gep89, i64 %148
  store i64 %147, ptr %gep90, align 8, !tbaa !5
  %149 = add nuw nsw i64 %.05687, 1
  %150 = mul nsw i64 %149, %6
  %gep.1 = getelementptr i64, ptr %invariant.gep, i64 %150
  %151 = load i64, ptr %gep.1, align 8, !tbaa !5
  %152 = mul nuw nsw i64 %149, %10
  %gep90.1 = getelementptr i64, ptr %invariant.gep89, i64 %152
  store i64 %151, ptr %gep90.1, align 8, !tbaa !5
  %153 = add nuw nsw i64 %.05687, 2
  %154 = mul nsw i64 %153, %6
  %gep.2 = getelementptr i64, ptr %invariant.gep, i64 %154
  %155 = load i64, ptr %gep.2, align 8, !tbaa !5
  %156 = mul nuw nsw i64 %153, %10
  %gep90.2 = getelementptr i64, ptr %invariant.gep89, i64 %156
  store i64 %155, ptr %gep90.2, align 8, !tbaa !5
  %157 = add nuw nsw i64 %.05687, 3
  %158 = mul nsw i64 %157, %6
  %gep.3 = getelementptr i64, ptr %invariant.gep, i64 %158
  %159 = load i64, ptr %gep.3, align 8, !tbaa !5
  %160 = mul nuw nsw i64 %157, %10
  %gep90.3 = getelementptr i64, ptr %invariant.gep89, i64 %160
  store i64 %159, ptr %gep90.3, align 8, !tbaa !5
  %161 = add nuw nsw i64 %.05687, 4
  %exitcond123.not.3 = icmp eq i64 %161, %88
  br i1 %exitcond123.not.3, label %.preheader70, label %scalar.ph136, !llvm.loop !24

._crit_edge99:                                    ; preds = %._crit_edge97.us, %.preheader70
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  store i64 0, ptr %3, align 8, !tbaa !5
  br i1 %104, label %.lr.ph115.split, label %._crit_edge116

._crit_edge116:                                   ; preds = %._crit_edge111, %._crit_edge99.thread, %._crit_edge99
  %.053.lcssa = phi i64 [ 0, %._crit_edge99 ], [ 0, %._crit_edge99.thread ], [ %.1.lcssa, %._crit_edge111 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.053.lcssa)
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef nonnull @.str)
  call void @llvm.stackrestore.p0(ptr %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret void

.lr.ph115.split:                                  ; preds = %._crit_edge99, %._crit_edge111
  %164 = phi i64 [ %167, %._crit_edge111 ], [ %105, %._crit_edge99 ]
  %165 = phi i64 [ %169, %._crit_edge111 ], [ 0, %._crit_edge99 ]
  %.053113 = phi i64 [ %.1.lcssa, %._crit_edge111 ], [ 0, %._crit_edge99 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store i64 0, ptr %4, align 8, !tbaa !5
  %166 = icmp sgt i64 %164, 0
  br i1 %166, label %.lr.ph110, label %._crit_edge111

._crit_edge111.loopexit:                          ; preds = %.loopexit
  %.pre126 = load i64, ptr %3, align 8, !tbaa !5
  br label %._crit_edge111

._crit_edge111:                                   ; preds = %._crit_edge111.loopexit, %.lr.ph115.split
  %167 = phi i64 [ %164, %.lr.ph115.split ], [ %208, %._crit_edge111.loopexit ]
  %168 = phi i64 [ %165, %.lr.ph115.split ], [ %.pre126, %._crit_edge111.loopexit ]
  %.1.lcssa = phi i64 [ %.053113, %.lr.ph115.split ], [ %.4, %._crit_edge111.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %3, align 8, !tbaa !5
  %170 = icmp slt i64 %169, %167
  br i1 %170, label %.lr.ph115.split, label %._crit_edge116, !llvm.loop !25

.lr.ph110:                                        ; preds = %.lr.ph115.split, %.loopexit
  %171 = phi i64 [ %208, %.loopexit ], [ %164, %.lr.ph115.split ]
  %172 = phi i64 [ %209, %.loopexit ], [ %164, %.lr.ph115.split ]
  %.1108 = phi i64 [ %.4, %.loopexit ], [ %.053113, %.lr.ph115.split ]
  %storemerge66107 = phi i64 [ %211, %.loopexit ], [ 0, %.lr.ph115.split ]
  %173 = load i64, ptr %3, align 8, !tbaa !5
  %174 = mul nsw i64 %173, %6
  %175 = getelementptr inbounds i64, ptr %9, i64 %174
  %176 = getelementptr inbounds i64, ptr %175, i64 %storemerge66107
  %177 = load i64, ptr %176, align 8, !tbaa !5
  %.not = icmp eq i64 %177, 0
  br i1 %.not, label %.loopexit, label %178

178:                                              ; preds = %.lr.ph110
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %180 = load i64, ptr %179, align 8, !tbaa !5
  %181 = load i64, ptr %1, align 8, !tbaa !5
  %182 = sub nsw i64 %181, %180
  %183 = icmp sgt i64 %182, 0
  %.pre = load i64, ptr %4, align 8, !tbaa !5
  br i1 %183, label %.lr.ph103, label %.loopexit

.lr.ph103:                                        ; preds = %178
  %184 = load i64, ptr %3, align 8, !tbaa !5
  %185 = mul nsw i64 %184, %10
  %186 = getelementptr inbounds i64, ptr %12, i64 %185
  %187 = getelementptr inbounds i64, ptr %186, i64 %.pre
  %188 = load i64, ptr %187, align 8, !tbaa !5
  %189 = getelementptr inbounds i64, ptr %13, i64 %185
  %190 = getelementptr inbounds i64, ptr %189, i64 %.pre
  %invariant.gep105 = getelementptr i64, ptr %13, i64 %.pre
  br label %191

191:                                              ; preds = %.lr.ph103, %206
  %.0101 = phi i64 [ 0, %.lr.ph103 ], [ %207, %206 ]
  %.2100 = phi i64 [ %.1108, %.lr.ph103 ], [ %.3, %206 ]
  %192 = icmp sgt i64 %188, %.0101
  br i1 %192, label %193, label %206

193:                                              ; preds = %191
  %194 = load i64, ptr %190, align 8, !tbaa !5
  %195 = icmp sgt i64 %194, %.0101
  br i1 %195, label %196, label %206

196:                                              ; preds = %193
  %197 = getelementptr i64, ptr %187, i64 %.0101
  %198 = load i64, ptr %197, align 8, !tbaa !5
  %199 = icmp sgt i64 %198, %.0101
  br i1 %199, label %200, label %206

200:                                              ; preds = %196
  %201 = add nsw i64 %184, %.0101
  %202 = mul nsw i64 %201, %10
  %gep106 = getelementptr i64, ptr %invariant.gep105, i64 %202
  %203 = load i64, ptr %gep106, align 8, !tbaa !5
  %204 = icmp sgt i64 %203, %.0101
  %205 = zext i1 %204 to i64
  %spec.select = add nsw i64 %.2100, %205
  br label %206

206:                                              ; preds = %200, %191, %193, %196
  %.3 = phi i64 [ %.2100, %196 ], [ %.2100, %193 ], [ %.2100, %191 ], [ %spec.select, %200 ]
  %207 = add nuw nsw i64 %.0101, 1
  %exitcond125.not = icmp eq i64 %207, %182
  br i1 %exitcond125.not, label %.loopexit, label %191, !llvm.loop !27

.loopexit:                                        ; preds = %206, %178, %.lr.ph110
  %208 = phi i64 [ %171, %.lr.ph110 ], [ %181, %178 ], [ %181, %206 ]
  %209 = phi i64 [ %172, %.lr.ph110 ], [ %181, %178 ], [ %181, %206 ]
  %210 = phi i64 [ %storemerge66107, %.lr.ph110 ], [ %.pre, %178 ], [ %.pre, %206 ]
  %.4 = phi i64 [ %.1108, %.lr.ph110 ], [ %.1108, %178 ], [ %.3, %206 ]
  %211 = add nsw i64 %210, 1
  store i64 %211, ptr %4, align 8, !tbaa !5
  %212 = icmp slt i64 %211, %209
  br i1 %212, label %.lr.ph110, label %._crit_edge111.loopexit, !llvm.loop !28
}

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 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 void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

; 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 #6

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

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

; 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) #7

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


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