; LLVM IR from bqi343/cp-notebook :: Contests/USACO Training/Ch 6/6.4 prime3.ll (Z5solveii)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@prime = external dso_local global [100000 x %"class.std::vector"], align 16
@nozero = external dso_local global %"class.std::vector", align 8
@arr = external dso_local global [5 x [5 x i32]], align 16
@ok = external dso_local global [100000 x i32], align 16

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4prini(i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solveii(i32 noundef %0, i32 noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sub nsw i32 %35, 1
  %37 = sdiv i32 %36, 2
  store i32 %37, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %38 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %38, ptr %6, align 4, !tbaa !5
  %39 = load i32, ptr %3, align 4, !tbaa !5
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %155

41:                                               ; preds = %2
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = srem i32 %42, 2
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %99

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 4, ptr %7, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %93, %45
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = icmp sge i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  store i32 2, ptr %8, align 4
  br label %96

51:                                               ; preds = %46
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = srem i32 %52, 10
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %55
  %57 = load i32, ptr %7, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [5 x i32], ptr %56, i64 0, i64 %58
  store i32 %53, ptr %59, align 4, !tbaa !5
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = sdiv i32 %60, 10
  store i32 %61, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %79, %51
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  %66 = icmp slt i32 %63, %65
  br i1 %66, label %68, label %67

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

68:                                               ; preds = %62
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = mul nsw i32 10, %69
  %71 = load i32, ptr %10, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %72
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [5 x i32], ptr %73, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = add nsw i32 %70, %77
  store i32 %78, ptr %9, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %68
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %10, align 4, !tbaa !5
  br label %62, !llvm.loop !9

82:                                               ; preds = %67
  %83 = load i32, ptr %9, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %89, label %88

88:                                               ; preds = %82
  store i32 1, ptr %8, align 4
  br label %90

89:                                               ; preds = %82
  store i32 0, ptr %8, align 4
  br label %90

90:                                               ; preds = %89, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %91 = load i32, ptr %8, align 4
  switch i32 %91, label %96 [
    i32 0, label %92
  ]

92:                                               ; preds = %90
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr %7, align 4, !tbaa !5
  br label %46, !llvm.loop !11

96:                                               ; preds = %90, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  %97 = load i32, ptr %8, align 4
  switch i32 %97, label %370 [
    i32 2, label %98
  ]

98:                                               ; preds = %96
  br label %154

99:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 4, ptr %11, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %148, %99
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = load i32, ptr %5, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  %104 = icmp sge i32 %101, %103
  br i1 %104, label %106, label %105

105:                                              ; preds = %100
  store i32 8, ptr %8, align 4
  br label %151

106:                                              ; preds = %100
  %107 = load i32, ptr %4, align 4, !tbaa !5
  %108 = srem i32 %107, 10
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %110
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [5 x i32], ptr %111, i64 0, i64 %113
  store i32 %108, ptr %114, align 4, !tbaa !5
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = sdiv i32 %115, 10
  store i32 %116, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %134, %106
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  %121 = icmp slt i32 %118, %120
  br i1 %121, label %123, label %122

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

123:                                              ; preds = %117
  %124 = load i32, ptr %12, align 4, !tbaa !5
  %125 = mul nsw i32 10, %124
  %126 = load i32, ptr %11, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %127
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [5 x i32], ptr %128, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = add nsw i32 %125, %132
  store i32 %133, ptr %12, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %123
  %135 = load i32, ptr %13, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %13, align 4, !tbaa !5
  br label %117, !llvm.loop !12

137:                                              ; preds = %122
  %138 = load i32, ptr %12, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %144, label %143

143:                                              ; preds = %137
  store i32 1, ptr %8, align 4
  br label %145

144:                                              ; preds = %137
  store i32 0, ptr %8, align 4
  br label %145

145:                                              ; preds = %144, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %146 = load i32, ptr %8, align 4
  switch i32 %146, label %151 [
    i32 0, label %147
  ]

147:                                              ; preds = %145
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %11, align 4, !tbaa !5
  %150 = add nsw i32 %149, -1
  store i32 %150, ptr %11, align 4, !tbaa !5
  br label %100, !llvm.loop !13

151:                                              ; preds = %145, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %152 = load i32, ptr %8, align 4
  switch i32 %152, label %370 [
    i32 8, label %153
  ]

153:                                              ; preds = %151
  br label %154

154:                                              ; preds = %153, %98
  br label %155

155:                                              ; preds = %154, %2
  %156 = load i32, ptr %3, align 4, !tbaa !5
  %157 = and i32 %156, 1
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %195

159:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %160

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

165:                                              ; preds = %160
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %180

166:                                              ; preds = %160
  %167 = load i32, ptr %14, align 4, !tbaa !5
  %168 = mul nsw i32 10, %167
  %169 = load i32, ptr %15, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %170
  %172 = load i32, ptr %15, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [5 x i32], ptr %171, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = add nsw i32 %168, %175
  store i32 %176, ptr %14, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %166
  %178 = load i32, ptr %15, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %15, align 4, !tbaa !5
  br label %160, !llvm.loop !14

180:                                              ; preds = %165
  %181 = load i32, ptr %5, align 4, !tbaa !5
  %182 = icmp sge i32 %181, 0
  br i1 %182, label %183, label %191

183:                                              ; preds = %180
  %184 = load i32, ptr %14, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %190, label %189

189:                                              ; preds = %183
  store i32 1, ptr %8, align 4
  br label %192

190:                                              ; preds = %183
  br label %191

191:                                              ; preds = %190, %180
  store i32 0, ptr %8, align 4
  br label %192

192:                                              ; preds = %191, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %193 = load i32, ptr %8, align 4
  switch i32 %193, label %370 [
    i32 0, label %194
  ]

194:                                              ; preds = %192
  br label %195

195:                                              ; preds = %194, %155
  %196 = load i32, ptr %3, align 4, !tbaa !5
  %197 = icmp eq i32 %196, 0
  br i1 %197, label %198, label %215

198:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr @nozero, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %199 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @nozero) #4
  %200 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %199, ptr %200, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %201 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @nozero) #4
  %202 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %201, ptr %202, align 8
  br label %203

203:                                              ; preds = %212, %198
  %204 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #4
  br i1 %204, label %206, label %205

205:                                              ; preds = %203
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %214

206:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  %208 = load i32, ptr %207, align 4, !tbaa !5
  store i32 %208, ptr %19, align 4, !tbaa !5
  %209 = load i32, ptr %3, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  %211 = load i32, ptr %19, align 4, !tbaa !5
  call void @_Z5solveii(i32 noundef %210, i32 noundef %211)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %212

212:                                              ; preds = %206
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #4
  br label %203

214:                                              ; preds = %205
  store i32 1, ptr %8, align 4
  br label %370

215:                                              ; preds = %195
  %216 = load i32, ptr %3, align 4, !tbaa !5
  %217 = icmp eq i32 %216, 1
  br i1 %217, label %218, label %240

218:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store ptr @nozero, ptr %20, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %219 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @nozero) #4
  %220 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %219, ptr %220, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %221 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @nozero) #4
  %222 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %221, ptr %222, align 8
  br label %223

223:                                              ; preds = %237, %218
  %224 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  br i1 %224, label %226, label %225

225:                                              ; preds = %223
  store i32 19, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %239

226:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  %228 = load i32, ptr %227, align 4, !tbaa !5
  store i32 %228, ptr %23, align 4, !tbaa !5
  %229 = load i32, ptr %23, align 4, !tbaa !5
  %230 = load i32, ptr %6, align 4, !tbaa !5
  %231 = icmp sge i32 %229, %230
  br i1 %231, label %232, label %236

232:                                              ; preds = %226
  %233 = load i32, ptr %3, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  %235 = load i32, ptr %23, align 4, !tbaa !5
  call void @_Z5solveii(i32 noundef %234, i32 noundef %235)
  br label %236

236:                                              ; preds = %232, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %237

237:                                              ; preds = %236
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  br label %223

239:                                              ; preds = %225
  store i32 1, ptr %8, align 4
  br label %370

240:                                              ; preds = %215
  br label %241

241:                                              ; preds = %240
  %242 = load i32, ptr %3, align 4, !tbaa !5
  %243 = icmp eq i32 %242, 10
  br i1 %243, label %244, label %299

244:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %245

245:                                              ; preds = %261, %244
  %246 = load i32, ptr %26, align 4, !tbaa !5
  %247 = icmp slt i32 %246, 5
  br i1 %247, label %249, label %248

248:                                              ; preds = %245
  store i32 21, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %264

249:                                              ; preds = %245
  %250 = load i32, ptr %24, align 4, !tbaa !5
  %251 = mul nsw i32 10, %250
  %252 = load i32, ptr %26, align 4, !tbaa !5
  %253 = sub nsw i32 4, %252
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %254
  %256 = load i32, ptr %26, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [5 x i32], ptr %255, i64 0, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = add nsw i32 %251, %259
  store i32 %260, ptr %24, align 4, !tbaa !5
  br label %261

261:                                              ; preds = %249
  %262 = load i32, ptr %26, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %26, align 4, !tbaa !5
  br label %245, !llvm.loop !17

264:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  store i32 4, ptr %27, align 4, !tbaa !5
  br label %265

265:                                              ; preds = %281, %264
  %266 = load i32, ptr %27, align 4, !tbaa !5
  %267 = icmp sge i32 %266, 0
  br i1 %267, label %269, label %268

268:                                              ; preds = %265
  store i32 24, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %284

269:                                              ; preds = %265
  %270 = load i32, ptr %25, align 4, !tbaa !5
  %271 = mul nsw i32 10, %270
  %272 = load i32, ptr %27, align 4, !tbaa !5
  %273 = sub nsw i32 4, %272
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %274
  %276 = load i32, ptr %27, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [5 x i32], ptr %275, i64 0, i64 %277
  %279 = load i32, ptr %278, align 4, !tbaa !5
  %280 = add nsw i32 %271, %279
  store i32 %280, ptr %25, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %269
  %282 = load i32, ptr %27, align 4, !tbaa !5
  %283 = add nsw i32 %282, -1
  store i32 %283, ptr %27, align 4, !tbaa !5
  br label %265, !llvm.loop !18

284:                                              ; preds = %268
  %285 = load i32, ptr %24, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %286
  %288 = load i32, ptr %287, align 4, !tbaa !5
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %291

290:                                              ; preds = %284
  call void @_Z4prini(i32 noundef 0)
  br label %291

291:                                              ; preds = %290, %284
  %292 = load i32, ptr %25, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %293
  %295 = load i32, ptr %294, align 4, !tbaa !5
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %297, label %298

297:                                              ; preds = %291
  call void @_Z4prini(i32 noundef 1)
  br label %298

298:                                              ; preds = %297, %291
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %370

299:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !5
  %300 = load i32, ptr %3, align 4, !tbaa !5
  %301 = srem i32 %300, 2
  %302 = icmp eq i32 %301, 1
  br i1 %302, label %303, label %325

303:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %304

304:                                              ; preds = %321, %303
  %305 = load i32, ptr %29, align 4, !tbaa !5
  %306 = load i32, ptr %5, align 4, !tbaa !5
  %307 = add nsw i32 %306, 1
  %308 = icmp slt i32 %305, %307
  br i1 %308, label %310, label %309

309:                                              ; preds = %304
  store i32 27, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %324

310:                                              ; preds = %304
  %311 = load i32, ptr %28, align 4, !tbaa !5
  %312 = mul nsw i32 10, %311
  %313 = load i32, ptr %29, align 4, !tbaa !5
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %314
  %316 = load i32, ptr %5, align 4, !tbaa !5
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [5 x i32], ptr %315, i64 0, i64 %317
  %319 = load i32, ptr %318, align 4, !tbaa !5
  %320 = add nsw i32 %312, %319
  store i32 %320, ptr %28, align 4, !tbaa !5
  br label %321

321:                                              ; preds = %310
  %322 = load i32, ptr %29, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %29, align 4, !tbaa !5
  br label %304, !llvm.loop !19

324:                                              ; preds = %309
  br label %348

325:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %326

326:                                              ; preds = %344, %325
  %327 = load i32, ptr %30, align 4, !tbaa !5
  %328 = load i32, ptr %5, align 4, !tbaa !5
  %329 = add nsw i32 %328, 1
  %330 = icmp slt i32 %327, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %326
  store i32 30, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  br label %347

332:                                              ; preds = %326
  %333 = load i32, ptr %28, align 4, !tbaa !5
  %334 = mul nsw i32 10, %333
  %335 = load i32, ptr %5, align 4, !tbaa !5
  %336 = add nsw i32 %335, 1
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %337
  %339 = load i32, ptr %30, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [5 x i32], ptr %338, i64 0, i64 %340
  %342 = load i32, ptr %341, align 4, !tbaa !5
  %343 = add nsw i32 %334, %342
  store i32 %343, ptr %28, align 4, !tbaa !5
  br label %344

344:                                              ; preds = %332
  %345 = load i32, ptr %30, align 4, !tbaa !5
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %30, align 4, !tbaa !5
  br label %326, !llvm.loop !20

347:                                              ; preds = %331
  br label %348

348:                                              ; preds = %347, %324
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %349 = load i32, ptr %28, align 4, !tbaa !5
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [100000 x %"class.std::vector"], ptr @prime, i64 0, i64 %350
  store ptr %351, ptr %31, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %352 = load ptr, ptr %31, align 8, !tbaa !15
  %353 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %352) #4
  %354 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %353, ptr %354, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %355 = load ptr, ptr %31, align 8, !tbaa !15
  %356 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %355) #4
  %357 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %356, ptr %357, align 8
  br label %358

358:                                              ; preds = %367, %348
  %359 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #4
  br i1 %359, label %361, label %360

360:                                              ; preds = %358
  store i32 33, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  br label %369

361:                                              ; preds = %358
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %362 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #4
  %363 = load i32, ptr %362, align 4, !tbaa !5
  store i32 %363, ptr %34, align 4, !tbaa !5
  %364 = load i32, ptr %3, align 4, !tbaa !5
  %365 = add nsw i32 %364, 1
  %366 = load i32, ptr %34, align 4, !tbaa !5
  call void @_Z5solveii(i32 noundef %365, i32 noundef %366)
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  br label %367

367:                                              ; preds = %361
  %368 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #4
  br label %358

369:                                              ; preds = %360
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  store i32 0, ptr %8, align 4
  br label %370

370:                                              ; preds = %369, %298, %239, %214, %192, %151, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %371 = load i32, ptr %8, align 4
  switch i32 %371, label %373 [
    i32 0, label %372
    i32 1, label %372
  ]

372:                                              ; preds = %370, %370
  ret void

373:                                              ; preds = %370
  unreachable
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@prime = external dso_local global [100000 x %"class.std::vector"], align 16
@nozero = external dso_local global %"class.std::vector", align 8
@arr = external dso_local local_unnamed_addr global [5 x [5 x i32]], align 16
@ok = external dso_local local_unnamed_addr global [100000 x i32], align 16

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4prini(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solveii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = add nsw i32 %0, -1
  %10 = sdiv i32 %9, 2
  %.not = icmp eq i32 %0, 0
  br i1 %.not, label %.critedge131.thread, label %11

11:                                               ; preds = %2
  %12 = and i32 %0, -2147483647
  %13 = icmp eq i32 %12, 1
  br i1 %13, label %.preheader138, label %.preheader140

.preheader140:                                    ; preds = %11
  %.not114.not.not146 = icmp slt i32 %0, 9
  br i1 %.not114.not.not146, label %.lr.ph149, label %.critedge

.lr.ph149:                                        ; preds = %.preheader140
  %14 = sext i32 %10 to i64
  %.not115143 = icmp slt i32 %0, 0
  %smax = tail call i32 @llvm.smax.i32(i32 %10, i32 0)
  %15 = add nuw nsw i32 %smax, 1
  %wide.trip.count = zext nneg i32 %15 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %16 = icmp slt i32 %0, 7
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %122

.preheader138:                                    ; preds = %11
  %.not117157 = icmp ugt i32 %0, 10
  br i1 %.not117157, label %.critedge, label %.lr.ph160

.lr.ph160:                                        ; preds = %.preheader138
  %17 = zext nneg i32 %10 to i64
  %18 = add nuw nsw i32 %10, 1
  %wide.trip.count206 = zext nneg i32 %18 to i64
  %19 = srem i32 %1, 10
  %20 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %17, i64 4
  store i32 %19, ptr %20, align 4, !tbaa !5
  %21 = sdiv i32 %1, 10
  %xtraiter259 = and i64 %wide.trip.count206, 3
  %22 = icmp ult i32 %10, 3
  br i1 %22, label %._crit_edge155.unr-lcssa, label %.lr.ph154.preheader.new

23:                                               ; preds = %._crit_edge155
  %.not117.not = icmp ult i32 %10, 4
  br i1 %.not117.not, label %.lr.ph154.preheader.1, label %.critedge, !llvm.loop !9

.lr.ph154.preheader.1:                            ; preds = %23
  %24 = srem i32 %21, 10
  %25 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %17, i64 3
  store i32 %24, ptr %25, align 4, !tbaa !5
  %26 = sdiv i32 %1, 100
  %xtraiter259.1 = and i64 %wide.trip.count206, 3
  %.off = add nsw i32 %0, -7
  %.not287 = icmp ult i32 %.off, 2
  br i1 %.not287, label %.lr.ph154.preheader.new.1, label %._crit_edge155.unr-lcssa.1

.lr.ph154.preheader.new.1:                        ; preds = %.lr.ph154.preheader.1
  %unroll_iter263.1 = and i64 %wide.trip.count206, 4
  br label %.lr.ph154.1

.lr.ph154.1:                                      ; preds = %.lr.ph154.1, %.lr.ph154.preheader.new.1
  %indvars.iv202.1 = phi i64 [ 0, %.lr.ph154.preheader.new.1 ], [ %indvars.iv.next203.3.1, %.lr.ph154.1 ]
  %.0100152.1 = phi i32 [ 0, %.lr.ph154.preheader.new.1 ], [ %42, %.lr.ph154.1 ]
  %niter264.1 = phi i64 [ 0, %.lr.ph154.preheader.new.1 ], [ %niter264.next.3.1, %.lr.ph154.1 ]
  %27 = mul nsw i32 %.0100152.1, 10
  %28 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv202.1, i64 3
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = add nsw i32 %29, %27
  %indvars.iv.next203.1265 = or disjoint i64 %indvars.iv202.1, 1
  %31 = mul nsw i32 %30, 10
  %32 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next203.1265, i64 3
  %33 = load i32, ptr %32, align 16, !tbaa !5
  %34 = add nsw i32 %33, %31
  %indvars.iv.next203.1.1 = or disjoint i64 %indvars.iv202.1, 2
  %35 = mul nsw i32 %34, 10
  %36 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next203.1.1, i64 3
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = add nsw i32 %37, %35
  %indvars.iv.next203.2.1 = or disjoint i64 %indvars.iv202.1, 3
  %39 = mul nsw i32 %38, 10
  %40 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next203.2.1, i64 3
  %41 = load i32, ptr %40, align 8, !tbaa !5
  %42 = add nsw i32 %41, %39
  %indvars.iv.next203.3.1 = add nuw nsw i64 %indvars.iv202.1, 4
  %niter264.next.3.1 = add i64 %niter264.1, 4
  %niter264.ncmp.3.1 = icmp eq i64 %niter264.next.3.1, %unroll_iter263.1
  br i1 %niter264.ncmp.3.1, label %._crit_edge155.unr-lcssa.1, label %.lr.ph154.1, !llvm.loop !11

._crit_edge155.unr-lcssa.1:                       ; preds = %.lr.ph154.1, %.lr.ph154.preheader.1
  %.lcssa254.ph.1 = phi i32 [ poison, %.lr.ph154.preheader.1 ], [ %42, %.lr.ph154.1 ]
  %indvars.iv202.unr.1 = phi i64 [ 0, %.lr.ph154.preheader.1 ], [ %indvars.iv.next203.3.1, %.lr.ph154.1 ]
  %.0100152.unr.1 = phi i32 [ 0, %.lr.ph154.preheader.1 ], [ %42, %.lr.ph154.1 ]
  %lcmp.mod261.1.not = icmp eq i64 %xtraiter259.1, 0
  br i1 %lcmp.mod261.1.not, label %._crit_edge155.1, label %.lr.ph154.epil.1

.lr.ph154.epil.1:                                 ; preds = %._crit_edge155.unr-lcssa.1, %.lr.ph154.epil.1
  %indvars.iv202.epil.1 = phi i64 [ %indvars.iv.next203.epil.1, %.lr.ph154.epil.1 ], [ %indvars.iv202.unr.1, %._crit_edge155.unr-lcssa.1 ]
  %.0100152.epil.1 = phi i32 [ %46, %.lr.ph154.epil.1 ], [ %.0100152.unr.1, %._crit_edge155.unr-lcssa.1 ]
  %epil.iter260.1 = phi i64 [ %epil.iter260.next.1, %.lr.ph154.epil.1 ], [ 0, %._crit_edge155.unr-lcssa.1 ]
  %43 = mul nsw i32 %.0100152.epil.1, 10
  %44 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv202.epil.1, i64 3
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = add nsw i32 %45, %43
  %indvars.iv.next203.epil.1 = add nuw nsw i64 %indvars.iv202.epil.1, 1
  %epil.iter260.next.1 = add i64 %epil.iter260.1, 1
  %epil.iter260.cmp.1.not = icmp eq i64 %epil.iter260.next.1, %xtraiter259.1
  br i1 %epil.iter260.cmp.1.not, label %._crit_edge155.1, label %.lr.ph154.epil.1, !llvm.loop !12

._crit_edge155.1:                                 ; preds = %.lr.ph154.epil.1, %._crit_edge155.unr-lcssa.1
  %.lcssa254.1 = phi i32 [ %.lcssa254.ph.1, %._crit_edge155.unr-lcssa.1 ], [ %46, %.lr.ph154.epil.1 ]
  %47 = sext i32 %.lcssa254.1 to i64
  %48 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %.not119.not.1 = icmp eq i32 %49, 0
  br i1 %.not119.not.1, label %.loopexit139, label %50

50:                                               ; preds = %._crit_edge155.1
  %.off288 = add nsw i32 %0, -7
  %.not117.not.1.not = icmp ult i32 %.off288, 2
  br i1 %.not117.not.1.not, label %.critedge, label %.lr.ph154.preheader.2, !llvm.loop !9

.lr.ph154.preheader.2:                            ; preds = %50
  %51 = srem i32 %26, 10
  %52 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %17, i64 2
  store i32 %51, ptr %52, align 4, !tbaa !5
  %53 = sdiv i32 %1, 1000
  %xtraiter259.2 = and i64 %wide.trip.count206, 3
  %.off290 = add nsw i32 %0, -7
  %.not289 = icmp ult i32 %.off290, 2
  br i1 %.not289, label %.lr.ph154.preheader.new.2, label %._crit_edge155.unr-lcssa.2

.lr.ph154.preheader.new.2:                        ; preds = %.lr.ph154.preheader.2
  %unroll_iter263.2 = and i64 %wide.trip.count206, 4
  br label %.lr.ph154.2

.lr.ph154.2:                                      ; preds = %.lr.ph154.2, %.lr.ph154.preheader.new.2
  %indvars.iv202.2 = phi i64 [ 0, %.lr.ph154.preheader.new.2 ], [ %indvars.iv.next203.3.2, %.lr.ph154.2 ]
  %.0100152.2 = phi i32 [ 0, %.lr.ph154.preheader.new.2 ], [ %69, %.lr.ph154.2 ]
  %niter264.2 = phi i64 [ 0, %.lr.ph154.preheader.new.2 ], [ %niter264.next.3.2, %.lr.ph154.2 ]
  %54 = mul nsw i32 %.0100152.2, 10
  %55 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv202.2, i64 2
  %56 = load i32, ptr %55, align 8, !tbaa !5
  %57 = add nsw i32 %56, %54
  %indvars.iv.next203.2266 = or disjoint i64 %indvars.iv202.2, 1
  %58 = mul nsw i32 %57, 10
  %59 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next203.2266, i64 2
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = add nsw i32 %60, %58
  %indvars.iv.next203.1.2 = or disjoint i64 %indvars.iv202.2, 2
  %62 = mul nsw i32 %61, 10
  %63 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next203.1.2, i64 2
  %64 = load i32, ptr %63, align 16, !tbaa !5
  %65 = add nsw i32 %64, %62
  %indvars.iv.next203.2.2 = or disjoint i64 %indvars.iv202.2, 3
  %66 = mul nsw i32 %65, 10
  %67 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next203.2.2, i64 2
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = add nsw i32 %68, %66
  %indvars.iv.next203.3.2 = add nuw nsw i64 %indvars.iv202.2, 4
  %niter264.next.3.2 = add i64 %niter264.2, 4
  %niter264.ncmp.3.2 = icmp eq i64 %niter264.next.3.2, %unroll_iter263.2
  br i1 %niter264.ncmp.3.2, label %._crit_edge155.unr-lcssa.2, label %.lr.ph154.2, !llvm.loop !11

._crit_edge155.unr-lcssa.2:                       ; preds = %.lr.ph154.2, %.lr.ph154.preheader.2
  %.lcssa254.ph.2 = phi i32 [ poison, %.lr.ph154.preheader.2 ], [ %69, %.lr.ph154.2 ]
  %indvars.iv202.unr.2 = phi i64 [ 0, %.lr.ph154.preheader.2 ], [ %indvars.iv.next203.3.2, %.lr.ph154.2 ]
  %.0100152.unr.2 = phi i32 [ 0, %.lr.ph154.preheader.2 ], [ %69, %.lr.ph154.2 ]
  %lcmp.mod261.2.not = icmp eq i64 %xtraiter259.2, 0
  br i1 %lcmp.mod261.2.not, label %._crit_edge155.2, label %.lr.ph154.epil.2

.lr.ph154.epil.2:                                 ; preds = %._crit_edge155.unr-lcssa.2, %.lr.ph154.epil.2
  %indvars.iv202.epil.2 = phi i64 [ %indvars.iv.next203.epil.2, %.lr.ph154.epil.2 ], [ %indvars.iv202.unr.2, %._crit_edge155.unr-lcssa.2 ]
  %.0100152.epil.2 = phi i32 [ %73, %.lr.ph154.epil.2 ], [ %.0100152.unr.2, %._crit_edge155.unr-lcssa.2 ]
  %epil.iter260.2 = phi i64 [ %epil.iter260.next.2, %.lr.ph154.epil.2 ], [ 0, %._crit_edge155.unr-lcssa.2 ]
  %70 = mul nsw i32 %.0100152.epil.2, 10
  %71 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv202.epil.2, i64 2
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = add nsw i32 %72, %70
  %indvars.iv.next203.epil.2 = add nuw nsw i64 %indvars.iv202.epil.2, 1
  %epil.iter260.next.2 = add i64 %epil.iter260.2, 1
  %epil.iter260.cmp.2.not = icmp eq i64 %epil.iter260.next.2, %xtraiter259.2
  br i1 %epil.iter260.cmp.2.not, label %._crit_edge155.2, label %.lr.ph154.epil.2, !llvm.loop !12

._crit_edge155.2:                                 ; preds = %.lr.ph154.epil.2, %._crit_edge155.unr-lcssa.2
  %.lcssa254.2 = phi i32 [ %.lcssa254.ph.2, %._crit_edge155.unr-lcssa.2 ], [ %73, %.lr.ph154.epil.2 ]
  %74 = sext i32 %.lcssa254.2 to i64
  %75 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %.not119.not.2 = icmp eq i32 %76, 0
  br i1 %.not119.not.2, label %.loopexit139, label %77

77:                                               ; preds = %._crit_edge155.2
  %.not117.not.2 = icmp ult i32 %10, 2
  br i1 %.not117.not.2, label %.lr.ph154.preheader.3, label %.critedge, !llvm.loop !9

.lr.ph154.preheader.3:                            ; preds = %77
  %78 = srem i32 %53, 10
  %79 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %17, i64 1
  store i32 %78, ptr %79, align 4, !tbaa !5
  %80 = sdiv i32 %1, 10000
  br label %.lr.ph154.epil.3

.lr.ph154.epil.3:                                 ; preds = %.lr.ph154.epil.3, %.lr.ph154.preheader.3
  %indvars.iv202.epil.3 = phi i64 [ 0, %.lr.ph154.preheader.3 ], [ %indvars.iv.next203.epil.3, %.lr.ph154.epil.3 ]
  %.0100152.epil.3 = phi i32 [ 0, %.lr.ph154.preheader.3 ], [ %84, %.lr.ph154.epil.3 ]
  %epil.iter260.3 = phi i64 [ 0, %.lr.ph154.preheader.3 ], [ %epil.iter260.next.3, %.lr.ph154.epil.3 ]
  %81 = mul nsw i32 %.0100152.epil.3, 10
  %82 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv202.epil.3, i64 1
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = add nsw i32 %83, %81
  %indvars.iv.next203.epil.3 = add nuw nsw i64 %indvars.iv202.epil.3, 1
  %epil.iter260.next.3 = add i64 %epil.iter260.3, 1
  %epil.iter260.cmp.3.not = icmp eq i64 %epil.iter260.next.3, %wide.trip.count206
  br i1 %epil.iter260.cmp.3.not, label %._crit_edge155.3, label %.lr.ph154.epil.3, !llvm.loop !12

._crit_edge155.3:                                 ; preds = %.lr.ph154.epil.3
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %.not119.not.3 = icmp eq i32 %87, 0
  br i1 %.not119.not.3, label %.loopexit139, label %88

88:                                               ; preds = %._crit_edge155.3
  %.not117.not.3 = icmp ult i32 %0, 3
  br i1 %.not117.not.3, label %.lr.ph154.preheader.4, label %.critedge, !llvm.loop !9

.lr.ph154.preheader.4:                            ; preds = %88
  %89 = srem i32 %80, 10
  %90 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %17, i64 0
  store i32 %89, ptr %90, align 4, !tbaa !5
  br label %.lr.ph154.epil.4

.lr.ph154.epil.4:                                 ; preds = %.lr.ph154.epil.4, %.lr.ph154.preheader.4
  %indvars.iv202.epil.4 = phi i64 [ 0, %.lr.ph154.preheader.4 ], [ %indvars.iv.next203.epil.4, %.lr.ph154.epil.4 ]
  %.0100152.epil.4 = phi i32 [ 0, %.lr.ph154.preheader.4 ], [ %94, %.lr.ph154.epil.4 ]
  %epil.iter260.4 = phi i64 [ 0, %.lr.ph154.preheader.4 ], [ %epil.iter260.next.4, %.lr.ph154.epil.4 ]
  %91 = mul nsw i32 %.0100152.epil.4, 10
  %92 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv202.epil.4, i64 0
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = add nsw i32 %93, %91
  %indvars.iv.next203.epil.4 = add nuw nsw i64 %indvars.iv202.epil.4, 1
  %epil.iter260.next.4 = add i64 %epil.iter260.4, 1
  %epil.iter260.cmp.4.not = icmp eq i64 %epil.iter260.next.4, %wide.trip.count206
  br i1 %epil.iter260.cmp.4.not, label %._crit_edge155.4, label %.lr.ph154.epil.4, !llvm.loop !12

._crit_edge155.4:                                 ; preds = %.lr.ph154.epil.4
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %.not119.not.4 = icmp eq i32 %97, 0
  br i1 %.not119.not.4, label %.loopexit139, label %.critedge

.lr.ph154.preheader.new:                          ; preds = %.lr.ph160
  %unroll_iter263 = and i64 %wide.trip.count206, 12
  br label %.lr.ph154

._crit_edge155.unr-lcssa:                         ; preds = %.lr.ph154, %.lr.ph160
  %.lcssa254.ph = phi i32 [ poison, %.lr.ph160 ], [ %120, %.lr.ph154 ]
  %indvars.iv202.unr = phi i64 [ 0, %.lr.ph160 ], [ %indvars.iv.next203.3, %.lr.ph154 ]
  %.0100152.unr = phi i32 [ 0, %.lr.ph160 ], [ %120, %.lr.ph154 ]
  %lcmp.mod261.not = icmp eq i64 %xtraiter259, 0
  br i1 %lcmp.mod261.not, label %._crit_edge155, label %.lr.ph154.epil

.lr.ph154.epil:                                   ; preds = %._crit_edge155.unr-lcssa, %.lr.ph154.epil
  %indvars.iv202.epil = phi i64 [ %indvars.iv.next203.epil, %.lr.ph154.epil ], [ %indvars.iv202.unr, %._crit_edge155.unr-lcssa ]
  %.0100152.epil = phi i32 [ %101, %.lr.ph154.epil ], [ %.0100152.unr, %._crit_edge155.unr-lcssa ]
  %epil.iter260 = phi i64 [ %epil.iter260.next, %.lr.ph154.epil ], [ 0, %._crit_edge155.unr-lcssa ]
  %98 = mul nsw i32 %.0100152.epil, 10
  %99 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv202.epil, i64 4
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = add nsw i32 %100, %98
  %indvars.iv.next203.epil = add nuw nsw i64 %indvars.iv202.epil, 1
  %epil.iter260.next = add i64 %epil.iter260, 1
  %epil.iter260.cmp.not = icmp eq i64 %epil.iter260.next, %xtraiter259
  br i1 %epil.iter260.cmp.not, label %._crit_edge155, label %.lr.ph154.epil, !llvm.loop !12

._crit_edge155:                                   ; preds = %.lr.ph154.epil, %._crit_edge155.unr-lcssa
  %.lcssa254 = phi i32 [ %.lcssa254.ph, %._crit_edge155.unr-lcssa ], [ %101, %.lr.ph154.epil ]
  %102 = sext i32 %.lcssa254 to i64
  %103 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %.not119.not = icmp eq i32 %104, 0
  br i1 %.not119.not, label %.loopexit139, label %23

.lr.ph154:                                        ; preds = %.lr.ph154, %.lr.ph154.preheader.new
  %indvars.iv202 = phi i64 [ 0, %.lr.ph154.preheader.new ], [ %indvars.iv.next203.3, %.lr.ph154 ]
  %.0100152 = phi i32 [ 0, %.lr.ph154.preheader.new ], [ %120, %.lr.ph154 ]
  %niter264 = phi i64 [ 0, %.lr.ph154.preheader.new ], [ %niter264.next.3, %.lr.ph154 ]
  %105 = mul nsw i32 %.0100152, 10
  %106 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv202, i64 4
  %107 = load i32, ptr %106, align 16, !tbaa !5
  %108 = add nsw i32 %107, %105
  %indvars.iv.next203 = or disjoint i64 %indvars.iv202, 1
  %109 = mul nsw i32 %108, 10
  %110 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next203, i64 4
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = add nsw i32 %111, %109
  %indvars.iv.next203.1 = or disjoint i64 %indvars.iv202, 2
  %113 = mul nsw i32 %112, 10
  %114 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next203.1, i64 4
  %115 = load i32, ptr %114, align 8, !tbaa !5
  %116 = add nsw i32 %115, %113
  %indvars.iv.next203.2 = or disjoint i64 %indvars.iv202, 3
  %117 = mul nsw i32 %116, 10
  %118 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next203.2, i64 4
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = add nsw i32 %119, %117
  %indvars.iv.next203.3 = add nuw nsw i64 %indvars.iv202, 4
  %niter264.next.3 = add i64 %niter264, 4
  %niter264.ncmp.3 = icmp eq i64 %niter264.next.3, %unroll_iter263
  br i1 %niter264.ncmp.3, label %._crit_edge155.unr-lcssa, label %.lr.ph154, !llvm.loop !11

121:                                              ; preds = %._crit_edge
  %indvars.iv.next200 = add nsw i64 %indvars.iv199, -1
  %.not114.not.not = icmp sgt i64 %indvars.iv.next200, %14
  br i1 %.not114.not.not, label %122, label %.critedge, !llvm.loop !14

122:                                              ; preds = %.lr.ph149, %121
  %indvars.iv199 = phi i64 [ 4, %.lr.ph149 ], [ %indvars.iv.next200, %121 ]
  %.1148 = phi i32 [ %1, %.lr.ph149 ], [ %125, %121 ]
  %123 = srem i32 %.1148, 10
  %124 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv199, i64 %14
  store i32 %123, ptr %124, align 4, !tbaa !5
  %125 = sdiv i32 %.1148, 10
  br i1 %.not115143, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %122
  br i1 %16, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa257.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %148, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.0106144.unr = phi i32 [ 0, %.lr.ph.preheader ], [ %148, %.lr.ph ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.0106144.epil = phi i32 [ %129, %.lr.ph.epil ], [ %.0106144.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %126 = mul nsw i32 %.0106144.epil, 10
  %127 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv199, i64 %indvars.iv.epil
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = add nsw i32 %128, %126
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !15

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %122
  %.0106.lcssa = phi i32 [ 0, %122 ], [ %.lcssa257.ph, %._crit_edge.loopexit.unr-lcssa ], [ %129, %.lr.ph.epil ]
  %130 = sext i32 %.0106.lcssa to i64
  %131 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %.not116.not = icmp eq i32 %132, 0
  br i1 %.not116.not, label %.loopexit139, label %121

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.0106144 = phi i32 [ %148, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %133 = mul nsw i32 %.0106144, 10
  %134 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv199, i64 %indvars.iv
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = add nsw i32 %135, %133
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %137 = mul nsw i32 %136, 10
  %138 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv199, i64 %indvars.iv.next
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = add nsw i32 %139, %137
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %141 = mul nsw i32 %140, 10
  %142 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv199, i64 %indvars.iv.next.1
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = add nsw i32 %143, %141
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %145 = mul nsw i32 %144, 10
  %146 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv199, i64 %indvars.iv.next.2
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = add nsw i32 %147, %145
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !16

.critedge:                                        ; preds = %121, %23, %50, %77, %88, %._crit_edge155.4, %.preheader140, %.preheader138
  %149 = and i32 %0, -2147483647
  %or.cond.not = icmp eq i32 %149, 1
  br i1 %or.cond.not, label %.lr.ph164.preheader, label %.critedge131

.lr.ph164.preheader:                              ; preds = %.critedge
  %150 = add nuw nsw i32 %10, 1
  %wide.trip.count215 = zext nneg i32 %150 to i64
  %xtraiter268 = and i64 %wide.trip.count215, 3
  %151 = icmp ult i32 %10, 3
  br i1 %151, label %._crit_edge165.unr-lcssa, label %.lr.ph164.preheader.new

.lr.ph164.preheader.new:                          ; preds = %.lr.ph164.preheader
  %unroll_iter272 = and i64 %wide.trip.count215, 2147483644
  br label %.lr.ph164

._crit_edge165.unr-lcssa:                         ; preds = %.lr.ph164, %.lr.ph164.preheader
  %.lcssa253.ph = phi i32 [ poison, %.lr.ph164.preheader ], [ %172, %.lr.ph164 ]
  %indvars.iv211.unr = phi i64 [ 0, %.lr.ph164.preheader ], [ %indvars.iv.next212.3, %.lr.ph164 ]
  %.0104162.unr = phi i32 [ 0, %.lr.ph164.preheader ], [ %172, %.lr.ph164 ]
  %lcmp.mod270.not = icmp eq i64 %xtraiter268, 0
  br i1 %lcmp.mod270.not, label %._crit_edge165, label %.lr.ph164.epil

.lr.ph164.epil:                                   ; preds = %._crit_edge165.unr-lcssa, %.lr.ph164.epil
  %indvars.iv211.epil = phi i64 [ %indvars.iv.next212.epil, %.lr.ph164.epil ], [ %indvars.iv211.unr, %._crit_edge165.unr-lcssa ]
  %.0104162.epil = phi i32 [ %155, %.lr.ph164.epil ], [ %.0104162.unr, %._crit_edge165.unr-lcssa ]
  %epil.iter269 = phi i64 [ %epil.iter269.next, %.lr.ph164.epil ], [ 0, %._crit_edge165.unr-lcssa ]
  %152 = mul nsw i32 %.0104162.epil, 10
  %153 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv211.epil, i64 %indvars.iv211.epil
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = add nsw i32 %154, %152
  %indvars.iv.next212.epil = add nuw nsw i64 %indvars.iv211.epil, 1
  %epil.iter269.next = add i64 %epil.iter269, 1
  %epil.iter269.cmp.not = icmp eq i64 %epil.iter269.next, %xtraiter268
  br i1 %epil.iter269.cmp.not, label %._crit_edge165, label %.lr.ph164.epil, !llvm.loop !17

._crit_edge165:                                   ; preds = %.lr.ph164.epil, %._crit_edge165.unr-lcssa
  %.lcssa253 = phi i32 [ %.lcssa253.ph, %._crit_edge165.unr-lcssa ], [ %155, %.lr.ph164.epil ]
  %156 = icmp sgt i32 %0, -1
  br i1 %156, label %173, label %.critedge131

.lr.ph164:                                        ; preds = %.lr.ph164, %.lr.ph164.preheader.new
  %indvars.iv211 = phi i64 [ 0, %.lr.ph164.preheader.new ], [ %indvars.iv.next212.3, %.lr.ph164 ]
  %.0104162 = phi i32 [ 0, %.lr.ph164.preheader.new ], [ %172, %.lr.ph164 ]
  %niter273 = phi i64 [ 0, %.lr.ph164.preheader.new ], [ %niter273.next.3, %.lr.ph164 ]
  %157 = mul nsw i32 %.0104162, 10
  %158 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv211, i64 %indvars.iv211
  %159 = load i32, ptr %158, align 16, !tbaa !5
  %160 = add nsw i32 %159, %157
  %indvars.iv.next212 = or disjoint i64 %indvars.iv211, 1
  %161 = mul nsw i32 %160, 10
  %162 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next212, i64 %indvars.iv.next212
  %163 = load i32, ptr %162, align 8, !tbaa !5
  %164 = add nsw i32 %163, %161
  %indvars.iv.next212.1 = or disjoint i64 %indvars.iv211, 2
  %165 = mul nsw i32 %164, 10
  %166 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next212.1, i64 %indvars.iv.next212.1
  %167 = load i32, ptr %166, align 16, !tbaa !5
  %168 = add nsw i32 %167, %165
  %indvars.iv.next212.2 = or disjoint i64 %indvars.iv211, 3
  %169 = mul nsw i32 %168, 10
  %170 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next212.2, i64 %indvars.iv.next212.2
  %171 = load i32, ptr %170, align 8, !tbaa !5
  %172 = add nsw i32 %171, %169
  %indvars.iv.next212.3 = add nuw nsw i64 %indvars.iv211, 4
  %niter273.next.3 = add i64 %niter273, 4
  %niter273.ncmp.3 = icmp eq i64 %niter273.next.3, %unroll_iter272
  br i1 %niter273.ncmp.3, label %._crit_edge165.unr-lcssa, label %.lr.ph164, !llvm.loop !18

173:                                              ; preds = %._crit_edge165
  %174 = sext i32 %.lcssa253 to i64
  %175 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %.not122 = icmp eq i32 %176, 0
  br i1 %.not122, label %.loopexit139, label %.critedge131

.critedge131:                                     ; preds = %._crit_edge165, %173, %.critedge
  switch i32 %0, label %224 [
    i32 0, label %.critedge131.thread
    i32 1, label %208
    i32 10, label %.preheader136.preheader
  ]

.preheader136.preheader:                          ; preds = %.critedge131
  %177 = load i32, ptr getelementptr inbounds (i8, ptr @arr, i64 80), align 16, !tbaa !5
  %178 = mul nsw i32 %177, 10
  %179 = load i32, ptr getelementptr inbounds (i8, ptr @arr, i64 64), align 16, !tbaa !5
  %180 = add nsw i32 %179, %178
  %181 = mul nsw i32 %180, 10
  %182 = load i32, ptr getelementptr inbounds (i8, ptr @arr, i64 48), align 16, !tbaa !5
  %183 = add nsw i32 %182, %181
  %184 = mul nsw i32 %183, 10
  %185 = load i32, ptr getelementptr inbounds (i8, ptr @arr, i64 32), align 16, !tbaa !5
  %186 = add nsw i32 %185, %184
  %187 = load i32, ptr getelementptr inbounds (i8, ptr @arr, i64 16), align 16, !tbaa !5
  %188 = mul nsw i32 %187, 10
  %189 = add nsw i32 %185, %188
  %190 = mul nsw i32 %189, 10
  %191 = add nsw i32 %182, %190
  %192 = mul nsw i32 %191, 10
  %193 = add nsw i32 %179, %192
  %194 = mul nsw i32 %193, 10
  %195 = add nsw i32 %177, %194
  %196 = mul nsw i32 %186, 10
  %197 = add nsw i32 %187, %196
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %198
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %.not125 = icmp eq i32 %200, 0
  br i1 %.not125, label %219, label %218

.critedge131.thread:                              ; preds = %2, %.critedge131
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %201 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @nozero) #5
  store ptr %201, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %202 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @nozero) #5
  store ptr %202, ptr %4, align 8
  %203 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %203, label %.lr.ph187, label %._crit_edge188

._crit_edge188:                                   ; preds = %.lr.ph187, %.critedge131.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %.loopexit139

.lr.ph187:                                        ; preds = %.critedge131.thread, %.lr.ph187
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %205 = load i32, ptr %204, align 4, !tbaa !5
  call void @_Z5solveii(i32 noundef 1, i32 noundef %205)
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  %207 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  br i1 %207, label %.lr.ph187, label %._crit_edge188

208:                                              ; preds = %.critedge131
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %209 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @nozero) #5
  store ptr %209, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %210 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @nozero) #5
  store ptr %210, ptr %6, align 8
  %211 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %211, label %.lr.ph172, label %._crit_edge173

._crit_edge173:                                   ; preds = %215, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %.loopexit139

.lr.ph172:                                        ; preds = %208, %215
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %.not127 = icmp slt i32 %213, %1
  br i1 %.not127, label %215, label %214

214:                                              ; preds = %.lr.ph172
  call void @_Z5solveii(i32 noundef 2, i32 noundef %213)
  br label %215

215:                                              ; preds = %214, %.lr.ph172
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %217 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %217, label %.lr.ph172, label %._crit_edge173

218:                                              ; preds = %.preheader136.preheader
  tail call void @_Z4prini(i32 noundef 0)
  br label %219

219:                                              ; preds = %218, %.preheader136.preheader
  %220 = sext i32 %195 to i64
  %221 = getelementptr inbounds [100000 x i32], ptr @ok, i64 0, i64 %220
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %.not126 = icmp eq i32 %222, 0
  br i1 %.not126, label %.loopexit139, label %223

223:                                              ; preds = %219
  tail call void @_Z4prini(i32 noundef 1)
  br label %.loopexit139

224:                                              ; preds = %.critedge131
  br i1 %13, label %.lr.ph182, label %.preheader133

.preheader133:                                    ; preds = %224
  %.not123174 = icmp slt i32 %0, 0
  br i1 %.not123174, label %.loopexit, label %.lr.ph177

.lr.ph177:                                        ; preds = %.preheader133
  %225 = add nsw i32 %10, 1
  %226 = sext i32 %225 to i64
  %smax227 = tail call i32 @llvm.smax.i32(i32 %10, i32 0)
  %227 = add nuw nsw i32 %smax227, 1
  %wide.trip.count228 = zext nneg i32 %227 to i64
  %xtraiter274 = and i64 %wide.trip.count228, 3
  %228 = icmp slt i32 %0, 7
  br i1 %228, label %.loopexit.loopexit251.unr-lcssa, label %.lr.ph177.new

.lr.ph177.new:                                    ; preds = %.lr.ph177
  %unroll_iter278 = and i64 %wide.trip.count228, 2147483644
  br label %249

.lr.ph182:                                        ; preds = %224
  %229 = zext nneg i32 %10 to i64
  %230 = add nuw nsw i32 %10, 1
  %wide.trip.count234 = zext nneg i32 %230 to i64
  %xtraiter281 = and i64 %wide.trip.count234, 3
  %231 = icmp ult i32 %10, 3
  br i1 %231, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph182.new

.lr.ph182.new:                                    ; preds = %.lr.ph182
  %unroll_iter285 = and i64 %wide.trip.count234, 2147483644
  br label %232

232:                                              ; preds = %232, %.lr.ph182.new
  %indvars.iv230 = phi i64 [ 0, %.lr.ph182.new ], [ %indvars.iv.next231.3, %232 ]
  %.091180 = phi i32 [ 0, %.lr.ph182.new ], [ %248, %232 ]
  %niter286 = phi i64 [ 0, %.lr.ph182.new ], [ %niter286.next.3, %232 ]
  %233 = mul nsw i32 %.091180, 10
  %234 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv230, i64 %229
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = add nsw i32 %235, %233
  %indvars.iv.next231 = or disjoint i64 %indvars.iv230, 1
  %237 = mul nsw i32 %236, 10
  %238 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next231, i64 %229
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = add nsw i32 %239, %237
  %indvars.iv.next231.1 = or disjoint i64 %indvars.iv230, 2
  %241 = mul nsw i32 %240, 10
  %242 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next231.1, i64 %229
  %243 = load i32, ptr %242, align 4, !tbaa !5
  %244 = add nsw i32 %243, %241
  %indvars.iv.next231.2 = or disjoint i64 %indvars.iv230, 3
  %245 = mul nsw i32 %244, 10
  %246 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv.next231.2, i64 %229
  %247 = load i32, ptr %246, align 4, !tbaa !5
  %248 = add nsw i32 %247, %245
  %indvars.iv.next231.3 = add nuw nsw i64 %indvars.iv230, 4
  %niter286.next.3 = add i64 %niter286, 4
  %niter286.ncmp.3 = icmp eq i64 %niter286.next.3, %unroll_iter285
  br i1 %niter286.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %232, !llvm.loop !19

249:                                              ; preds = %249, %.lr.ph177.new
  %indvars.iv224 = phi i64 [ 0, %.lr.ph177.new ], [ %indvars.iv.next225.3, %249 ]
  %.192175 = phi i32 [ 0, %.lr.ph177.new ], [ %265, %249 ]
  %niter279 = phi i64 [ 0, %.lr.ph177.new ], [ %niter279.next.3, %249 ]
  %250 = mul nsw i32 %.192175, 10
  %251 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %226, i64 %indvars.iv224
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = add nsw i32 %252, %250
  %indvars.iv.next225 = or disjoint i64 %indvars.iv224, 1
  %254 = mul nsw i32 %253, 10
  %255 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %226, i64 %indvars.iv.next225
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = add nsw i32 %256, %254
  %indvars.iv.next225.1 = or disjoint i64 %indvars.iv224, 2
  %258 = mul nsw i32 %257, 10
  %259 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %226, i64 %indvars.iv.next225.1
  %260 = load i32, ptr %259, align 4, !tbaa !5
  %261 = add nsw i32 %260, %258
  %indvars.iv.next225.2 = or disjoint i64 %indvars.iv224, 3
  %262 = mul nsw i32 %261, 10
  %263 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %226, i64 %indvars.iv.next225.2
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = add nsw i32 %264, %262
  %indvars.iv.next225.3 = add nuw nsw i64 %indvars.iv224, 4
  %niter279.next.3 = add i64 %niter279, 4
  %niter279.ncmp.3 = icmp eq i64 %niter279.next.3, %unroll_iter278
  br i1 %niter279.ncmp.3, label %.loopexit.loopexit251.unr-lcssa, label %249, !llvm.loop !20

.loopexit.loopexit.unr-lcssa:                     ; preds = %232, %.lr.ph182
  %.lcssa.ph = phi i32 [ poison, %.lr.ph182 ], [ %248, %232 ]
  %indvars.iv230.unr = phi i64 [ 0, %.lr.ph182 ], [ %indvars.iv.next231.3, %232 ]
  %.091180.unr = phi i32 [ 0, %.lr.ph182 ], [ %248, %232 ]
  %lcmp.mod283.not = icmp eq i64 %xtraiter281, 0
  br i1 %lcmp.mod283.not, label %.loopexit, label %.epil.preheader280

.epil.preheader280:                               ; preds = %.loopexit.loopexit.unr-lcssa, %.epil.preheader280
  %indvars.iv230.epil = phi i64 [ %indvars.iv.next231.epil, %.epil.preheader280 ], [ %indvars.iv230.unr, %.loopexit.loopexit.unr-lcssa ]
  %.091180.epil = phi i32 [ %269, %.epil.preheader280 ], [ %.091180.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter282 = phi i64 [ %epil.iter282.next, %.epil.preheader280 ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %266 = mul nsw i32 %.091180.epil, 10
  %267 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %indvars.iv230.epil, i64 %229
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = add nsw i32 %268, %266
  %indvars.iv.next231.epil = add nuw nsw i64 %indvars.iv230.epil, 1
  %epil.iter282.next = add i64 %epil.iter282, 1
  %epil.iter282.cmp.not = icmp eq i64 %epil.iter282.next, %xtraiter281
  br i1 %epil.iter282.cmp.not, label %.loopexit, label %.epil.preheader280, !llvm.loop !21

.loopexit.loopexit251.unr-lcssa:                  ; preds = %249, %.lr.ph177
  %.lcssa252.ph = phi i32 [ poison, %.lr.ph177 ], [ %265, %249 ]
  %indvars.iv224.unr = phi i64 [ 0, %.lr.ph177 ], [ %indvars.iv.next225.3, %249 ]
  %.192175.unr = phi i32 [ 0, %.lr.ph177 ], [ %265, %249 ]
  %lcmp.mod276.not = icmp eq i64 %xtraiter274, 0
  br i1 %lcmp.mod276.not, label %.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %.loopexit.loopexit251.unr-lcssa, %.epil.preheader
  %indvars.iv224.epil = phi i64 [ %indvars.iv.next225.epil, %.epil.preheader ], [ %indvars.iv224.unr, %.loopexit.loopexit251.unr-lcssa ]
  %.192175.epil = phi i32 [ %273, %.epil.preheader ], [ %.192175.unr, %.loopexit.loopexit251.unr-lcssa ]
  %epil.iter275 = phi i64 [ %epil.iter275.next, %.epil.preheader ], [ 0, %.loopexit.loopexit251.unr-lcssa ]
  %270 = mul nsw i32 %.192175.epil, 10
  %271 = getelementptr inbounds [5 x [5 x i32]], ptr @arr, i64 0, i64 %226, i64 %indvars.iv224.epil
  %272 = load i32, ptr %271, align 4, !tbaa !5
  %273 = add nsw i32 %272, %270
  %indvars.iv.next225.epil = add nuw nsw i64 %indvars.iv224.epil, 1
  %epil.iter275.next = add i64 %epil.iter275, 1
  %epil.iter275.cmp.not = icmp eq i64 %epil.iter275.next, %xtraiter274
  br i1 %epil.iter275.cmp.not, label %.loopexit, label %.epil.preheader, !llvm.loop !22

.loopexit:                                        ; preds = %.loopexit.loopexit251.unr-lcssa, %.epil.preheader, %.loopexit.loopexit.unr-lcssa, %.epil.preheader280, %.preheader133
  %.2 = phi i32 [ 0, %.preheader133 ], [ %.lcssa.ph, %.loopexit.loopexit.unr-lcssa ], [ %269, %.epil.preheader280 ], [ %.lcssa252.ph, %.loopexit.loopexit251.unr-lcssa ], [ %273, %.epil.preheader ]
  %274 = sext i32 %.2 to i64
  %275 = getelementptr inbounds [100000 x %"class.std::vector"], ptr @prime, i64 0, i64 %274
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %276 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %275) #5
  store ptr %276, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %277 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %275) #5
  store ptr %277, ptr %8, align 8
  %278 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %278, label %.lr.ph185, label %._crit_edge186

.lr.ph185:                                        ; preds = %.loopexit
  %279 = add nsw i32 %0, 1
  br label %280

._crit_edge186:                                   ; preds = %280, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %.loopexit139

280:                                              ; preds = %.lr.ph185, %280
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %282 = load i32, ptr %281, align 4, !tbaa !5
  call void @_Z5solveii(i32 noundef %279, i32 noundef %282)
  %283 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %284 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  br i1 %284, label %280, label %._crit_edge186

.loopexit139:                                     ; preds = %._crit_edge, %._crit_edge155, %._crit_edge155.1, %._crit_edge155.2, %._crit_edge155.3, %._crit_edge155.4, %219, %223, %173, %._crit_edge186, %._crit_edge173, %._crit_edge188
  ret void
}

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}


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