; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/NUMTSN/A.ll/Z3getNSt7 (cxx1112basic_stringIcSt11char_traitsIcESaIcEEE)

; 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.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] }

@dp = external dso_local global [52 x [17 x [17 x [17 x [2 x i32]]]]], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6digitsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef) #1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z3getNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca ptr, align 8
  %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 i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %0)
  invoke void @_Z6digitsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %3, ptr noundef %4)
          to label %37 unwind label %47

37:                                               ; preds = %1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %38 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = sdiv i32 %40, 3
  store i32 %41, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %106, %37
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %51, label %46

46:                                               ; preds = %42
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %109

47:                                               ; preds = %1
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %5, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #4
  br label %393

51:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %102, %51
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = icmp sle i32 %53, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %52
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %105

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %98, %57
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = load i32, ptr %8, align 4, !tbaa !9
  %61 = icmp sle i32 %59, %60
  br i1 %61, label %63, label %62

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

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %94, %63
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = icmp sle i32 %65, %66
  br i1 %67, label %69, label %68

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

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %90, %69
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = icmp slt i32 %71, 2
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %93

74:                                               ; preds = %70
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %76
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [17 x [17 x [17 x [2 x i32]]]], ptr %77, i64 0, i64 %79
  %81 = load i32, ptr %12, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [17 x [17 x [2 x i32]]], ptr %80, i64 0, i64 %82
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [17 x [2 x i32]], ptr %83, i64 0, i64 %85
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [2 x i32], ptr %86, i64 0, i64 %88
  store i32 0, ptr %89, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %74
  %91 = load i32, ptr %14, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %14, align 4, !tbaa !9
  br label %70, !llvm.loop !11

93:                                               ; preds = %73
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %13, align 4, !tbaa !9
  br label %64, !llvm.loop !13

97:                                               ; preds = %68
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %12, align 4, !tbaa !9
  br label %58, !llvm.loop !14

101:                                              ; preds = %62
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %11, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %11, align 4, !tbaa !9
  br label %52, !llvm.loop !15

105:                                              ; preds = %56
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %9, align 4, !tbaa !9
  br label %42, !llvm.loop !16

109:                                              ; preds = %46
  store i32 1, ptr getelementptr inbounds ([2 x i32], ptr @dp, i64 0, i64 1), align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %352, %109
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %115, label %114

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

115:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %116 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %117 unwind label %124

117:                                              ; preds = %115
  %118 = load i32, ptr %116, align 4, !tbaa !9
  store i32 %118, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %347, %117
  %120 = load i32, ptr %17, align 4, !tbaa !9
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = icmp sle i32 %120, %121
  br i1 %122, label %128, label %123

123:                                              ; preds = %119
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %351

124:                                              ; preds = %115
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %5, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %6, align 4
  br label %355

128:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %129 = load i32, ptr %7, align 4, !tbaa !9
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = sub nsw i32 %129, %130
  store i32 %131, ptr %19, align 4, !tbaa !9
  %132 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %133 unwind label %140

133:                                              ; preds = %128
  %134 = load i32, ptr %132, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  store i32 %134, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %342, %133
  %136 = load i32, ptr %20, align 4, !tbaa !9
  %137 = load i32, ptr %18, align 4, !tbaa !9
  %138 = icmp sle i32 %136, %137
  br i1 %138, label %144, label %139

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

140:                                              ; preds = %128
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %5, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %350

144:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %145 = load i32, ptr %7, align 4, !tbaa !9
  %146 = load i32, ptr %17, align 4, !tbaa !9
  %147 = sub nsw i32 %145, %146
  %148 = load i32, ptr %20, align 4, !tbaa !9
  %149 = sub nsw i32 %147, %148
  store i32 %149, ptr %22, align 4, !tbaa !9
  %150 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %151 unwind label %158

151:                                              ; preds = %144
  %152 = load i32, ptr %150, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  store i32 %152, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %338, %151
  %154 = load i32, ptr %23, align 4, !tbaa !9
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = icmp sle i32 %154, %155
  br i1 %156, label %162, label %157

157:                                              ; preds = %153
  store i32 26, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %341

158:                                              ; preds = %144
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %5, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %345

162:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %163 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %164 unwind label %182

164:                                              ; preds = %162
  %165 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %163)
          to label %166 unwind label %182

166:                                              ; preds = %164
  %167 = load i32, ptr %165, align 4, !tbaa !9
  store i32 %167, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %168 = load i32, ptr %24, align 4, !tbaa !9
  %169 = mul nsw i32 3, %168
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = sub nsw i32 %169, %170
  %172 = load i32, ptr %20, align 4, !tbaa !9
  %173 = sub nsw i32 %171, %172
  %174 = load i32, ptr %23, align 4, !tbaa !9
  %175 = sub nsw i32 %173, %174
  store i32 %175, ptr %25, align 4, !tbaa !9
  %176 = load i32, ptr %15, align 4, !tbaa !9
  %177 = load i32, ptr %25, align 4, !tbaa !9
  %178 = add nsw i32 %176, %177
  %179 = load i32, ptr %7, align 4, !tbaa !9
  %180 = icmp sgt i32 %178, %179
  br i1 %180, label %181, label %186

181:                                              ; preds = %166
  store i32 28, ptr %10, align 4
  br label %335

182:                                              ; preds = %164, %162
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %5, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %345

186:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %331, %186
  %188 = load i32, ptr %26, align 4, !tbaa !9
  %189 = icmp slt i32 %188, 2
  br i1 %189, label %191, label %190

190:                                              ; preds = %187
  store i32 29, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %334

191:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %192 = load i32, ptr %15, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %193
  %195 = load i32, ptr %17, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [17 x [17 x [17 x [2 x i32]]]], ptr %194, i64 0, i64 %196
  %198 = load i32, ptr %20, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [17 x [17 x [2 x i32]]], ptr %197, i64 0, i64 %199
  %201 = load i32, ptr %23, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [17 x [2 x i32]], ptr %200, i64 0, i64 %202
  %204 = load i32, ptr %26, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [2 x i32], ptr %203, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  store i64 %208, ptr %27, align 8, !tbaa !17
  %209 = load i64, ptr %27, align 8, !tbaa !17
  %210 = icmp ne i64 %209, 0
  br i1 %210, label %212, label %211

211:                                              ; preds = %191
  store i32 31, ptr %10, align 4
  br label %328

212:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %213 = load i32, ptr %26, align 4, !tbaa !9
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %220

215:                                              ; preds = %212
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %217) #4
  %219 = load i32, ptr %218, align 4, !tbaa !9
  br label %221

220:                                              ; preds = %212
  br label %221

221:                                              ; preds = %220, %215
  %222 = phi i32 [ %219, %215 ], [ 9, %220 ]
  store i32 %222, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %223

223:                                              ; preds = %324, %221
  %224 = load i32, ptr %29, align 4, !tbaa !9
  %225 = load i32, ptr %28, align 4, !tbaa !9
  %226 = icmp sle i32 %224, %225
  br i1 %226, label %228, label %227

227:                                              ; preds = %223
  store i32 32, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %327

228:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  %229 = load i32, ptr %26, align 4, !tbaa !9
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %238

231:                                              ; preds = %228
  %232 = load i32, ptr %29, align 4, !tbaa !9
  %233 = load i32, ptr %15, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %234) #4
  %236 = load i32, ptr %235, align 4, !tbaa !9
  %237 = icmp eq i32 %232, %236
  br label %238

238:                                              ; preds = %231, %228
  %239 = phi i1 [ false, %228 ], [ %237, %231 ]
  %240 = zext i1 %239 to i32
  store i32 %240, ptr %30, align 4, !tbaa !9
  %241 = load i32, ptr %29, align 4, !tbaa !9
  %242 = icmp ne i32 %241, 3
  br i1 %242, label %243, label %268

243:                                              ; preds = %238
  %244 = load i32, ptr %29, align 4, !tbaa !9
  %245 = icmp ne i32 %244, 6
  br i1 %245, label %246, label %268

246:                                              ; preds = %243
  %247 = load i32, ptr %29, align 4, !tbaa !9
  %248 = icmp ne i32 %247, 9
  br i1 %248, label %249, label %268

249:                                              ; preds = %246
  %250 = load i32, ptr %15, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %252
  %254 = load i32, ptr %17, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [17 x [17 x [17 x [2 x i32]]]], ptr %253, i64 0, i64 %255
  %257 = load i32, ptr %20, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [17 x [17 x [2 x i32]]], ptr %256, i64 0, i64 %258
  %260 = load i32, ptr %23, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [17 x [2 x i32]], ptr %259, i64 0, i64 %261
  %263 = load i32, ptr %30, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [2 x i32], ptr %262, i64 0, i64 %264
  %266 = load i64, ptr %27, align 8, !tbaa !17
  %267 = trunc i64 %266 to i32
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %265, i32 noundef %267)
  store i32 34, ptr %10, align 4
  br label %321

268:                                              ; preds = %246, %243, %238
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %269 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %269, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %270 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %270, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %271 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %271, ptr %33, align 4, !tbaa !9
  %272 = load i32, ptr %29, align 4, !tbaa !9
  %273 = icmp eq i32 %272, 3
  br i1 %273, label %274, label %277

274:                                              ; preds = %268
  %275 = load i32, ptr %31, align 4, !tbaa !9
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %31, align 4, !tbaa !9
  br label %291

277:                                              ; preds = %268
  %278 = load i32, ptr %29, align 4, !tbaa !9
  %279 = icmp eq i32 %278, 6
  br i1 %279, label %280, label %283

280:                                              ; preds = %277
  %281 = load i32, ptr %32, align 4, !tbaa !9
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %32, align 4, !tbaa !9
  br label %290

283:                                              ; preds = %277
  %284 = load i32, ptr %29, align 4, !tbaa !9
  %285 = icmp eq i32 %284, 9
  br i1 %285, label %286, label %289

286:                                              ; preds = %283
  %287 = load i32, ptr %33, align 4, !tbaa !9
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %33, align 4, !tbaa !9
  br label %289

289:                                              ; preds = %286, %283
  br label %290

290:                                              ; preds = %289, %280
  br label %291

291:                                              ; preds = %290, %274
  %292 = load i32, ptr %31, align 4, !tbaa !9
  %293 = icmp sgt i32 %292, 16
  br i1 %293, label %300, label %294

294:                                              ; preds = %291
  %295 = load i32, ptr %32, align 4, !tbaa !9
  %296 = icmp sgt i32 %295, 16
  br i1 %296, label %300, label %297

297:                                              ; preds = %294
  %298 = load i32, ptr %33, align 4, !tbaa !9
  %299 = icmp sgt i32 %298, 16
  br i1 %299, label %300, label %301

300:                                              ; preds = %297, %294, %291
  store i32 34, ptr %10, align 4
  br label %320

301:                                              ; preds = %297
  %302 = load i32, ptr %15, align 4, !tbaa !9
  %303 = add nsw i32 %302, 1
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %304
  %306 = load i32, ptr %31, align 4, !tbaa !9
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [17 x [17 x [17 x [2 x i32]]]], ptr %305, i64 0, i64 %307
  %309 = load i32, ptr %32, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [17 x [17 x [2 x i32]]], ptr %308, i64 0, i64 %310
  %312 = load i32, ptr %33, align 4, !tbaa !9
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [17 x [2 x i32]], ptr %311, i64 0, i64 %313
  %315 = load i32, ptr %30, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [2 x i32], ptr %314, i64 0, i64 %316
  %318 = load i64, ptr %27, align 8, !tbaa !17
  %319 = trunc i64 %318 to i32
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %317, i32 noundef %319)
  store i32 0, ptr %10, align 4
  br label %320

320:                                              ; preds = %301, %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  br label %321

321:                                              ; preds = %320, %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  %322 = load i32, ptr %10, align 4
  switch i32 %322, label %399 [
    i32 0, label %323
    i32 34, label %324
  ]

323:                                              ; preds = %321
  br label %324

324:                                              ; preds = %323, %321
  %325 = load i32, ptr %29, align 4, !tbaa !9
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %29, align 4, !tbaa !9
  br label %223, !llvm.loop !19

327:                                              ; preds = %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  store i32 0, ptr %10, align 4
  br label %328

328:                                              ; preds = %327, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  %329 = load i32, ptr %10, align 4
  switch i32 %329, label %399 [
    i32 0, label %330
    i32 31, label %331
  ]

330:                                              ; preds = %328
  br label %331

331:                                              ; preds = %330, %328
  %332 = load i32, ptr %26, align 4, !tbaa !9
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr %26, align 4, !tbaa !9
  br label %187, !llvm.loop !20

334:                                              ; preds = %190
  store i32 0, ptr %10, align 4
  br label %335

335:                                              ; preds = %334, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  %336 = load i32, ptr %10, align 4
  switch i32 %336, label %399 [
    i32 0, label %337
    i32 28, label %338
  ]

337:                                              ; preds = %335
  br label %338

338:                                              ; preds = %337, %335
  %339 = load i32, ptr %23, align 4, !tbaa !9
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %23, align 4, !tbaa !9
  br label %153, !llvm.loop !21

341:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr %20, align 4, !tbaa !9
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %20, align 4, !tbaa !9
  br label %135, !llvm.loop !22

345:                                              ; preds = %182, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %350

346:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %347

347:                                              ; preds = %346
  %348 = load i32, ptr %17, align 4, !tbaa !9
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %17, align 4, !tbaa !9
  br label %119, !llvm.loop !23

350:                                              ; preds = %345, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %355

351:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %352

352:                                              ; preds = %351
  %353 = load i32, ptr %15, align 4, !tbaa !9
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %15, align 4, !tbaa !9
  br label %110, !llvm.loop !24

355:                                              ; preds = %350, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %393

356:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  store i32 0, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  store i32 1, ptr %35, align 4, !tbaa !9
  br label %357

357:                                              ; preds = %387, %356
  %358 = load i32, ptr %35, align 4, !tbaa !9
  %359 = icmp slt i32 %358, 17
  br i1 %359, label %361, label %360

360:                                              ; preds = %357
  store i32 35, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  br label %390

361:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %362

362:                                              ; preds = %383, %361
  %363 = load i32, ptr %36, align 4, !tbaa !9
  %364 = icmp slt i32 %363, 2
  br i1 %364, label %366, label %365

365:                                              ; preds = %362
  store i32 38, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  br label %386

366:                                              ; preds = %362
  %367 = load i32, ptr %7, align 4, !tbaa !9
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %368
  %370 = load i32, ptr %35, align 4, !tbaa !9
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [17 x [17 x [17 x [2 x i32]]]], ptr %369, i64 0, i64 %371
  %373 = load i32, ptr %35, align 4, !tbaa !9
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [17 x [17 x [2 x i32]]], ptr %372, i64 0, i64 %374
  %376 = load i32, ptr %35, align 4, !tbaa !9
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds [17 x [2 x i32]], ptr %375, i64 0, i64 %377
  %379 = load i32, ptr %36, align 4, !tbaa !9
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds [2 x i32], ptr %378, i64 0, i64 %380
  %382 = load i32, ptr %381, align 4, !tbaa !9
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %34, i32 noundef %382)
  br label %383

383:                                              ; preds = %366
  %384 = load i32, ptr %36, align 4, !tbaa !9
  %385 = add nsw i32 %384, 1
  store i32 %385, ptr %36, align 4, !tbaa !9
  br label %362, !llvm.loop !25

386:                                              ; preds = %365
  br label %387

387:                                              ; preds = %386
  %388 = load i32, ptr %35, align 4, !tbaa !9
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %35, align 4, !tbaa !9
  br label %357, !llvm.loop !26

390:                                              ; preds = %360
  %391 = load i32, ptr %34, align 4, !tbaa !9
  %392 = sext i32 %391 to i64
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  ret i64 %392

393:                                              ; preds = %355, %47
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  br label %394

394:                                              ; preds = %393
  %395 = load ptr, ptr %5, align 8
  %396 = load i32, ptr %6, align 4
  %397 = insertvalue { ptr, i32 } poison, ptr %395, 0
  %398 = insertvalue { ptr, i32 } %397, i32 %396, 1
  resume { ptr, i32 } %398

399:                                              ; preds = %335, %328, %321
  unreachable
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!18, !18, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}


; 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.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] }

@dp = external dso_local global [52 x [17 x [17 x [17 x [2 x i32]]]]], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6digitsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef) local_unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i64 -2147483648, 2147483648) i64 @_Z3getNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %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
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %0)
  invoke void @_Z6digitsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %2, ptr noundef nonnull %3)
          to label %12 unwind label %23

12:                                               ; preds = %1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  %13 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %14 = trunc i64 %13 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %15 = sdiv i32 %14, 3
  store i32 %15, ptr %4, align 4, !tbaa !5
  %.not117 = icmp slt i32 %14, 0
  br i1 %.not117, label %._crit_edge119.thread, label %.preheader107.preheader

._crit_edge119.thread:                            ; preds = %12
  store i32 1, ptr getelementptr inbounds (i8, ptr @dp, i64 4), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  br label %._crit_edge140

.preheader107.preheader:                          ; preds = %12
  %16 = add nuw nsw i32 %15, 1
  %17 = zext nneg i32 %16 to i64
  %18 = shl nuw nsw i64 %17, 3
  %19 = add nuw nsw i64 %13, 1
  %wide.trip.count160 = and i64 %19, 4294967295
  %xtraiter = and i64 %17, 7
  %20 = icmp ult i32 %15, 7
  %unroll_iter = and i64 %17, 2147483640
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader107

.preheader107:                                    ; preds = %.preheader107.preheader, %._crit_edge116.split
  %indvar = phi i64 [ 0, %.preheader107.preheader ], [ %indvar.next, %._crit_edge116.split ]
  %21 = mul nuw nsw i64 %indvar, 39304
  %22 = getelementptr i8, ptr @dp, i64 %21
  br label %.preheader106

._crit_edge119:                                   ; preds = %._crit_edge116.split
  store i32 1, ptr getelementptr inbounds (i8, ptr @dp, i64 4), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %._crit_edge140, label %.lr.ph139

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

.preheader106:                                    ; preds = %.preheader107, %._crit_edge113.split
  %indvar146 = phi i64 [ 0, %.preheader107 ], [ %indvar.next147, %._crit_edge113.split ]
  %25 = mul nuw nsw i64 %indvar146, 2312
  %26 = getelementptr i8, ptr %22, i64 %25
  br i1 %20, label %._crit_edge113.split.unr-lcssa, label %.preheader106.new

.preheader106.new:                                ; preds = %.preheader106
  %invariant.gep = getelementptr i8, ptr %26, i64 136
  %invariant.gep181 = getelementptr i8, ptr %26, i64 272
  %invariant.gep183 = getelementptr i8, ptr %26, i64 408
  %invariant.gep185 = getelementptr i8, ptr %26, i64 544
  %invariant.gep187 = getelementptr i8, ptr %26, i64 680
  %invariant.gep189 = getelementptr i8, ptr %26, i64 816
  %invariant.gep191 = getelementptr i8, ptr %26, i64 952
  br label %.preheader105

._crit_edge116.split:                             ; preds = %._crit_edge113.split
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond161.not = icmp eq i64 %indvar.next, %wide.trip.count160
  br i1 %exitcond161.not, label %._crit_edge119, label %.preheader107, !llvm.loop !9

.preheader105:                                    ; preds = %.preheader105, %.preheader106.new
  %indvar148 = phi i64 [ 0, %.preheader106.new ], [ %indvar.next149.7, %.preheader105 ]
  %niter = phi i64 [ 0, %.preheader106.new ], [ %niter.next.7, %.preheader105 ]
  %27 = mul nuw nsw i64 %indvar148, 136
  %scevgep153 = getelementptr i8, ptr %26, i64 %27
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %scevgep153, i8 0, i64 %18, i1 false), !tbaa !5
  %28 = mul nuw i64 %indvar148, 136
  %gep = getelementptr i8, ptr %invariant.gep, i64 %28
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep, i8 0, i64 %18, i1 false), !tbaa !5
  %29 = mul nuw i64 %indvar148, 136
  %gep182 = getelementptr i8, ptr %invariant.gep181, i64 %29
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep182, i8 0, i64 %18, i1 false), !tbaa !5
  %30 = mul nuw i64 %indvar148, 136
  %gep184 = getelementptr i8, ptr %invariant.gep183, i64 %30
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep184, i8 0, i64 %18, i1 false), !tbaa !5
  %31 = mul nuw i64 %indvar148, 136
  %gep186 = getelementptr i8, ptr %invariant.gep185, i64 %31
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep186, i8 0, i64 %18, i1 false), !tbaa !5
  %32 = mul nuw i64 %indvar148, 136
  %gep188 = getelementptr i8, ptr %invariant.gep187, i64 %32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep188, i8 0, i64 %18, i1 false), !tbaa !5
  %33 = mul nuw i64 %indvar148, 136
  %gep190 = getelementptr i8, ptr %invariant.gep189, i64 %33
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep190, i8 0, i64 %18, i1 false), !tbaa !5
  %34 = mul nuw i64 %indvar148, 136
  %gep192 = getelementptr i8, ptr %invariant.gep191, i64 %34
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %gep192, i8 0, i64 %18, i1 false), !tbaa !5
  %indvar.next149.7 = add nuw nsw i64 %indvar148, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge113.split.unr-lcssa, label %.preheader105, !llvm.loop !11

._crit_edge113.split.unr-lcssa:                   ; preds = %.preheader105, %.preheader106
  %indvar148.unr = phi i64 [ 0, %.preheader106 ], [ %indvar.next149.7, %.preheader105 ]
  br i1 %lcmp.mod.not, label %._crit_edge113.split, label %.preheader105.epil

.preheader105.epil:                               ; preds = %._crit_edge113.split.unr-lcssa, %.preheader105.epil
  %indvar148.epil = phi i64 [ %indvar.next149.epil, %.preheader105.epil ], [ %indvar148.unr, %._crit_edge113.split.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader105.epil ], [ 0, %._crit_edge113.split.unr-lcssa ]
  %35 = mul nuw nsw i64 %indvar148.epil, 136
  %scevgep153.epil = getelementptr i8, ptr %26, i64 %35
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %scevgep153.epil, i8 0, i64 %18, i1 false), !tbaa !5
  %indvar.next149.epil = add nuw nsw i64 %indvar148.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_edge113.split, label %.preheader105.epil, !llvm.loop !12

._crit_edge113.split:                             ; preds = %.preheader105.epil, %._crit_edge113.split.unr-lcssa
  %indvar.next147 = add nuw nsw i64 %indvar146, 1
  %exitcond158.not = icmp eq i64 %indvar.next147, %17
  br i1 %exitcond158.not, label %._crit_edge116.split, label %.preheader106, !llvm.loop !14

._crit_edge140:                                   ; preds = %._crit_edge137, %._crit_edge119.thread, %._crit_edge119
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  %sext = shl i64 %13, 32
  %36 = ashr exact i64 %sext, 32
  %37 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 1, i64 1, i64 1, i64 0
  %38 = load i32, ptr %37, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %38)
  %39 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 1, i64 1, i64 1, i64 1
  %40 = load i32, ptr %39, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %40)
  %41 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 2, i64 2, i64 2, i64 0
  %42 = load i32, ptr %41, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %42)
  %43 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 2, i64 2, i64 2, i64 1
  %44 = load i32, ptr %43, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %44)
  %45 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 3, i64 3, i64 3, i64 0
  %46 = load i32, ptr %45, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %46)
  %47 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 3, i64 3, i64 3, i64 1
  %48 = load i32, ptr %47, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %48)
  %49 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 4, i64 4, i64 4, i64 0
  %50 = load i32, ptr %49, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %50)
  %51 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 4, i64 4, i64 4, i64 1
  %52 = load i32, ptr %51, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %52)
  %53 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 5, i64 5, i64 5, i64 0
  %54 = load i32, ptr %53, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %54)
  %55 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 5, i64 5, i64 5, i64 1
  %56 = load i32, ptr %55, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %56)
  %57 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 6, i64 6, i64 6, i64 0
  %58 = load i32, ptr %57, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %58)
  %59 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 6, i64 6, i64 6, i64 1
  %60 = load i32, ptr %59, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %60)
  %61 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 7, i64 7, i64 7, i64 0
  %62 = load i32, ptr %61, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %62)
  %63 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 7, i64 7, i64 7, i64 1
  %64 = load i32, ptr %63, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %64)
  %65 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 8, i64 8, i64 8, i64 0
  %66 = load i32, ptr %65, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %66)
  %67 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 8, i64 8, i64 8, i64 1
  %68 = load i32, ptr %67, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %68)
  %69 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 9, i64 9, i64 9, i64 0
  %70 = load i32, ptr %69, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %70)
  %71 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 9, i64 9, i64 9, i64 1
  %72 = load i32, ptr %71, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %72)
  %73 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 10, i64 10, i64 10, i64 0
  %74 = load i32, ptr %73, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %74)
  %75 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 10, i64 10, i64 10, i64 1
  %76 = load i32, ptr %75, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %76)
  %77 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 11, i64 11, i64 11, i64 0
  %78 = load i32, ptr %77, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %78)
  %79 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 11, i64 11, i64 11, i64 1
  %80 = load i32, ptr %79, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %80)
  %81 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 12, i64 12, i64 12, i64 0
  %82 = load i32, ptr %81, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %82)
  %83 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 12, i64 12, i64 12, i64 1
  %84 = load i32, ptr %83, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %84)
  %85 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 13, i64 13, i64 13, i64 0
  %86 = load i32, ptr %85, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %86)
  %87 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 13, i64 13, i64 13, i64 1
  %88 = load i32, ptr %87, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %88)
  %89 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 14, i64 14, i64 14, i64 0
  %90 = load i32, ptr %89, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %90)
  %91 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 14, i64 14, i64 14, i64 1
  %92 = load i32, ptr %91, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %92)
  %93 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 15, i64 15, i64 15, i64 0
  %94 = load i32, ptr %93, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %94)
  %95 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 15, i64 15, i64 15, i64 1
  %96 = load i32, ptr %95, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %96)
  %97 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 16, i64 16, i64 16, i64 0
  %98 = load i32, ptr %97, align 8, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %98)
  %99 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %36, i64 16, i64 16, i64 16, i64 1
  %100 = load i32, ptr %99, align 4, !tbaa !5
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %11, i32 noundef %100)
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  ret i64 %102

.lr.ph139:                                        ; preds = %._crit_edge119, %._crit_edge137
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %104 = load i32, ptr %103, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  %.not85133 = icmp slt i32 %104, 0
  br i1 %.not85133, label %._crit_edge137, label %.lr.ph136

._crit_edge137:                                   ; preds = %._crit_edge132, %.lr.ph139
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %5, align 4, !tbaa !5
  %107 = icmp slt i32 %106, %14
  br i1 %107, label %.lr.ph139, label %._crit_edge140, !llvm.loop !15

.lr.ph136:                                        ; preds = %.lr.ph139, %._crit_edge132
  %storemerge84134 = phi i32 [ %112, %._crit_edge132 ], [ 0, %.lr.ph139 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %108 = sub nsw i32 %14, %storemerge84134
  store i32 %108, ptr %7, align 4, !tbaa !5
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %110 = load i32, ptr %109, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  %.not87128 = icmp slt i32 %110, 0
  br i1 %.not87128, label %._crit_edge132, label %.lr.ph131

._crit_edge132:                                   ; preds = %._crit_edge127, %.lr.ph136
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %6, align 4, !tbaa !5
  %.not85.not = icmp slt i32 %111, %104
  br i1 %.not85.not, label %.lr.ph136, label %._crit_edge137, !llvm.loop !16

.lr.ph131:                                        ; preds = %.lr.ph136, %._crit_edge127
  %storemerge86129.neg = phi i32 [ %.neg143, %._crit_edge127 ], [ 0, %.lr.ph136 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %113 = load i32, ptr %6, align 4, !tbaa !5
  %.neg96 = add i32 %storemerge86129.neg, %14
  %114 = sub i32 %.neg96, %113
  store i32 %114, ptr %9, align 4, !tbaa !5
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %116 = load i32, ptr %115, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  %.not89124 = icmp slt i32 %116, 0
  br i1 %.not89124, label %._crit_edge127, label %.lr.ph126

._crit_edge127:                                   ; preds = %.loopexit103, %.lr.ph131
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %.neg143 = xor i32 %117, -1
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %8, align 4, !tbaa !5
  %.not87.not = icmp slt i32 %117, %110
  br i1 %.not87.not, label %.lr.ph131, label %._crit_edge132, !llvm.loop !17

.lr.ph126:                                        ; preds = %.lr.ph131, %.loopexit103
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %119)
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = mul nsw i32 %121, 3
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = load i32, ptr %8, align 4, !tbaa !5
  %125 = load i32, ptr %10, align 4, !tbaa !5
  %126 = load i32, ptr %5, align 4, !tbaa !5
  %127 = add i32 %123, %124
  %128 = add i32 %127, %125
  %129 = sub i32 %122, %128
  %130 = add nsw i32 %129, %126
  %131 = icmp sgt i32 %130, %14
  br i1 %131, label %.loopexit103, label %.preheader102.preheader

.preheader102.preheader:                          ; preds = %.lr.ph126
  %132 = sext i32 %126 to i64
  %133 = sext i32 %123 to i64
  %134 = sext i32 %124 to i64
  %135 = sext i32 %125 to i64
  %136 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %132, i64 %133, i64 %134, i64 %135, i64 0
  %137 = load i32, ptr %136, align 8, !tbaa !5
  %.not90 = icmp eq i32 %137, 0
  br i1 %.not90, label %.loopexit, label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.preheader102.preheader, %171
  %.077121.us = phi i32 [ %172, %171 ], [ 0, %.preheader102.preheader ]
  switch i32 %.077121.us, label %160 [
    i32 9, label %138
    i32 6, label %138
    i32 3, label %138
  ]

138:                                              ; preds = %.lr.ph.split.us, %.lr.ph.split.us, %.lr.ph.split.us
  %139 = load i32, ptr %6, align 4, !tbaa !5
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = load i32, ptr %10, align 4, !tbaa !5
  switch i32 %.077121.us, label %148 [
    i32 3, label %146
    i32 6, label %144
    i32 9, label %142
  ]

142:                                              ; preds = %138
  %143 = add nsw i32 %141, 1
  br label %148

144:                                              ; preds = %138
  %145 = add nsw i32 %140, 1
  br label %148

146:                                              ; preds = %138
  %147 = add nsw i32 %139, 1
  br label %148

148:                                              ; preds = %146, %144, %142, %138
  %.075.us = phi i32 [ %147, %146 ], [ %139, %144 ], [ %139, %142 ], [ %139, %138 ]
  %.074.us = phi i32 [ %140, %146 ], [ %145, %144 ], [ %140, %142 ], [ %140, %138 ]
  %.073.us = phi i32 [ %141, %146 ], [ %141, %144 ], [ %143, %142 ], [ %141, %138 ]
  %149 = icmp sgt i32 %.075.us, 16
  %150 = icmp sgt i32 %.074.us, 16
  %or.cond5.us = select i1 %149, i1 true, i1 %150
  %151 = icmp sgt i32 %.073.us, 16
  %or.cond7.us = select i1 %or.cond5.us, i1 true, i1 %151
  br i1 %or.cond7.us, label %171, label %152

152:                                              ; preds = %148
  %153 = load i32, ptr %5, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  %155 = sext i32 %154 to i64
  %156 = sext i32 %.075.us to i64
  %157 = sext i32 %.074.us to i64
  %158 = sext i32 %.073.us to i64
  %159 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %155, i64 %156, i64 %157, i64 %158, i64 0
  br label %.sink.split

160:                                              ; preds = %.lr.ph.split.us
  %161 = load i32, ptr %5, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = load i32, ptr %6, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = load i32, ptr %8, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = load i32, ptr %10, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %163, i64 %165, i64 %167, i64 %169, i64 0
  br label %.sink.split

.sink.split:                                      ; preds = %152, %160
  %.sink = phi ptr [ %170, %160 ], [ %159, %152 ]
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %.sink, i32 noundef %137)
  br label %171

171:                                              ; preds = %.sink.split, %148
  %172 = add nuw i32 %.077121.us, 1
  %exitcond163.not = icmp eq i32 %172, 10
  br i1 %exitcond163.not, label %.loopexit.loopexit, label %.lr.ph.split.us, !llvm.loop !18

.loopexit.loopexit:                               ; preds = %171
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  %.pre168 = load i32, ptr %6, align 4, !tbaa !5
  %.pre169 = load i32, ptr %8, align 4, !tbaa !5
  %.pre170 = load i32, ptr %10, align 4, !tbaa !5
  %.pre172 = sext i32 %.pre to i64
  %.pre173 = sext i32 %.pre168 to i64
  %.pre175 = sext i32 %.pre169 to i64
  %.pre177 = sext i32 %.pre170 to i64
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.preheader102.preheader
  %.pre-phi178 = phi i64 [ %.pre177, %.loopexit.loopexit ], [ %135, %.preheader102.preheader ]
  %.pre-phi176 = phi i64 [ %.pre175, %.loopexit.loopexit ], [ %134, %.preheader102.preheader ]
  %.pre-phi174 = phi i64 [ %.pre173, %.loopexit.loopexit ], [ %133, %.preheader102.preheader ]
  %.pre-phi = phi i64 [ %.pre172, %.loopexit.loopexit ], [ %132, %.preheader102.preheader ]
  %173 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %.pre-phi, i64 %.pre-phi174, i64 %.pre-phi176, i64 %.pre-phi178, i64 1
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %.not90.1 = icmp eq i32 %174, 0
  br i1 %.not90.1, label %.loopexit.1, label %175

175:                                              ; preds = %.loopexit
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.pre-phi) #5
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %.not92120.1 = icmp slt i32 %177, 0
  br i1 %.not92120.1, label %.loopexit.1, label %.lr.ph.split.1

.lr.ph.split.1:                                   ; preds = %175, %218
  %.077121.1 = phi i32 [ %219, %218 ], [ 0, %175 ]
  %178 = load i32, ptr %5, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %179) #5
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = icmp eq i32 %.077121.1, %181
  switch i32 %.077121.1, label %206 [
    i32 9, label %183
    i32 6, label %183
    i32 3, label %183
  ]

183:                                              ; preds = %.lr.ph.split.1, %.lr.ph.split.1, %.lr.ph.split.1
  %184 = load i32, ptr %6, align 4, !tbaa !5
  %185 = load i32, ptr %8, align 4, !tbaa !5
  %186 = load i32, ptr %10, align 4, !tbaa !5
  switch i32 %.077121.1, label %193 [
    i32 3, label %191
    i32 6, label %189
    i32 9, label %187
  ]

187:                                              ; preds = %183
  %188 = add nsw i32 %186, 1
  br label %193

189:                                              ; preds = %183
  %190 = add nsw i32 %185, 1
  br label %193

191:                                              ; preds = %183
  %192 = add nsw i32 %184, 1
  br label %193

193:                                              ; preds = %191, %189, %187, %183
  %.075.1 = phi i32 [ %192, %191 ], [ %184, %189 ], [ %184, %187 ], [ %184, %183 ]
  %.074.1 = phi i32 [ %185, %191 ], [ %190, %189 ], [ %185, %187 ], [ %185, %183 ]
  %.073.1 = phi i32 [ %186, %191 ], [ %186, %189 ], [ %188, %187 ], [ %186, %183 ]
  %194 = icmp sgt i32 %.075.1, 16
  %195 = icmp sgt i32 %.074.1, 16
  %or.cond5.1 = select i1 %194, i1 true, i1 %195
  %196 = icmp sgt i32 %.073.1, 16
  %or.cond7.1 = select i1 %or.cond5.1, i1 true, i1 %196
  br i1 %or.cond7.1, label %218, label %197

197:                                              ; preds = %193
  %198 = load i32, ptr %5, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = sext i32 %.075.1 to i64
  %202 = sext i32 %.074.1 to i64
  %203 = sext i32 %.073.1 to i64
  %204 = zext i1 %182 to i64
  %205 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %200, i64 %201, i64 %202, i64 %203, i64 %204
  br label %.sink.split179

206:                                              ; preds = %.lr.ph.split.1
  %207 = load i32, ptr %5, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  %209 = sext i32 %208 to i64
  %210 = load i32, ptr %6, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = load i32, ptr %8, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = load i32, ptr %10, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = zext i1 %182 to i64
  %217 = getelementptr inbounds [52 x [17 x [17 x [17 x [2 x i32]]]]], ptr @dp, i64 0, i64 %209, i64 %211, i64 %213, i64 %215, i64 %216
  br label %.sink.split179

.sink.split179:                                   ; preds = %197, %206
  %.sink180 = phi ptr [ %217, %206 ], [ %205, %197 ]
  call void @_Z3addRii(ptr noundef nonnull align 4 dereferenceable(4) %.sink180, i32 noundef %174)
  br label %218

218:                                              ; preds = %.sink.split179, %193
  %219 = add nuw i32 %.077121.1, 1
  %exitcond162.1.not = icmp eq i32 %.077121.1, %177
  br i1 %exitcond162.1.not, label %.loopexit.1, label %.lr.ph.split.1, !llvm.loop !18

.loopexit.1:                                      ; preds = %218, %175, %.loopexit
  %.pre171 = load i32, ptr %10, align 4, !tbaa !5
  br label %.loopexit103

.loopexit103:                                     ; preds = %.loopexit.1, %.lr.ph126
  %220 = phi i32 [ %.pre171, %.loopexit.1 ], [ %125, %.lr.ph126 ]
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %10, align 4, !tbaa !5
  %.not89.not = icmp slt i32 %220, %116
  br i1 %.not89.not, label %.lr.ph126, label %._crit_edge127, !llvm.loop !19
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { 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 #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn memory(argmem: write) }
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, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass