; LLVM IR from DionysiosB/CodeForces :: 0300-0399 (374C-InnaAndDima)

; 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"

%"struct.std::_Bit_reference" = type { ptr, i64 }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 4 dereferenceable(4) %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.std::_Bit_reference", align 8
  %18 = alloca %"struct.std::_Bit_reference", align 8
  %19 = alloca %"struct.std::_Bit_reference", align 8
  %20 = alloca %"struct.std::_Bit_reference", align 8
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca %"struct.std::_Bit_reference", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = icmp slt i32 %28, 0
  br i1 %29, label %49, label %30

30:                                               ; preds = %8
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #3
  %36 = icmp uge i64 %33, %35
  br i1 %36, label %49, label %37

37:                                               ; preds = %30
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %49, label %41

41:                                               ; preds = %37
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef 0) #3
  %47 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #3
  %48 = icmp uge i64 %44, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %41, %37, %30, %8
  br label %341

50:                                               ; preds = %41
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %51) #3
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = urem i64 %54, %52
  %56 = trunc i64 %55 to i32
  store i32 %56, ptr %11, align 4, !tbaa !9
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load i32, ptr %11, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %57, i64 noundef %59) #3
  %61 = load i8, ptr %60, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %66) #3
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %67, i64 noundef %70) #3
  %72 = load i8, ptr %71, align 1, !tbaa !11
  %73 = sext i8 %72 to i32
  %74 = icmp ne i32 %62, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %50
  br label %341

76:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %80) #3
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %81, i64 noundef %84)
  %86 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %87 = extractvalue { ptr, i64 } %85, 0
  store ptr %87, ptr %86, align 8
  %88 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %89 = extractvalue { ptr, i64 } %85, 1
  store i64 %89, ptr %88, align 8
  %90 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  br i1 %90, label %91, label %92

91:                                               ; preds = %76
  br label %341

92:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %96) #3
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %97, i64 noundef %100)
  %102 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %103 = extractvalue { ptr, i64 } %101, 0
  store ptr %103, ptr %102, align 8
  %104 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %105 = extractvalue { ptr, i64 } %101, 1
  store i64 %105, ptr %104, align 8
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %18, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %110) #3
  %112 = icmp eq i64 %109, %111
  br i1 %112, label %113, label %296

113:                                              ; preds = %92
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %114, align 4, !tbaa !9
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = sub nsw i32 %118, 1
  %120 = icmp sge i32 %119, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  br i1 %120, label %121, label %155

121:                                              ; preds = %113
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = sub nsw i32 %124, 1
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %126) #3
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %127, i64 noundef %130) #3
  %132 = load i8, ptr %131, align 1, !tbaa !11
  %133 = sext i8 %132 to i32
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %134, i64 noundef 0) #3
  %136 = load i8, ptr %135, align 1, !tbaa !11
  %137 = sext i8 %136 to i32
  %138 = icmp eq i32 %133, %137
  br i1 %138, label %139, label %155

139:                                              ; preds = %121
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = sub nsw i32 %142, 1
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %144) #3
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %145, i64 noundef %148)
  %150 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %151 = extractvalue { ptr, i64 } %149, 0
  store ptr %151, ptr %150, align 8
  %152 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %153 = extractvalue { ptr, i64 } %149, 1
  store i64 %153, ptr %152, align 8
  %154 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #3
  br label %155

155:                                              ; preds = %139, %121, %113
  %156 = phi i1 [ false, %121 ], [ false, %113 ], [ %154, %139 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  br i1 %156, label %157, label %159

157:                                              ; preds = %155
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 1, ptr %158, align 1, !tbaa !12
  br label %341

159:                                              ; preds = %155
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load i32, ptr %160, align 4, !tbaa !9
  %162 = add nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #3
  %166 = icmp ult i64 %163, %165
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  br i1 %166, label %167, label %201

167:                                              ; preds = %159
  %168 = load ptr, ptr %13, align 8, !tbaa !5
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %172) #3
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %173, i64 noundef %176) #3
  %178 = load i8, ptr %177, align 1, !tbaa !11
  %179 = sext i8 %178 to i32
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %180, i64 noundef 0) #3
  %182 = load i8, ptr %181, align 1, !tbaa !11
  %183 = sext i8 %182 to i32
  %184 = icmp eq i32 %179, %183
  br i1 %184, label %185, label %201

185:                                              ; preds = %167
  %186 = load ptr, ptr %14, align 8, !tbaa !5
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %190) #3
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = load i32, ptr %192, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %191, i64 noundef %194)
  %196 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %197 = extractvalue { ptr, i64 } %195, 0
  store ptr %197, ptr %196, align 8
  %198 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %199 = extractvalue { ptr, i64 } %195, 1
  store i64 %199, ptr %198, align 8
  %200 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %20) #3
  br label %201

201:                                              ; preds = %185, %167, %159
  %202 = phi i1 [ false, %167 ], [ false, %159 ], [ %200, %185 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  br i1 %202, label %203, label %205

203:                                              ; preds = %201
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 1, ptr %204, align 1, !tbaa !12
  br label %341

205:                                              ; preds = %201
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = sub nsw i32 %207, 1
  %209 = icmp sge i32 %208, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #3
  br i1 %209, label %210, label %244

210:                                              ; preds = %205
  %211 = load ptr, ptr %13, align 8, !tbaa !5
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = load i32, ptr %212, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %211, i64 noundef %214) #3
  %216 = load ptr, ptr %10, align 8, !tbaa !5
  %217 = load i32, ptr %216, align 4, !tbaa !9
  %218 = sub nsw i32 %217, 1
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %215, i64 noundef %219) #3
  %221 = load i8, ptr %220, align 1, !tbaa !11
  %222 = sext i8 %221 to i32
  %223 = load ptr, ptr %12, align 8, !tbaa !5
  %224 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %223, i64 noundef 0) #3
  %225 = load i8, ptr %224, align 1, !tbaa !11
  %226 = sext i8 %225 to i32
  %227 = icmp eq i32 %222, %226
  br i1 %227, label %228, label %244

228:                                              ; preds = %210
  %229 = load ptr, ptr %14, align 8, !tbaa !5
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = load i32, ptr %230, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %229, i64 noundef %232) #3
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = load i32, ptr %234, align 4, !tbaa !9
  %236 = sub nsw i32 %235, 1
  %237 = sext i32 %236 to i64
  %238 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %233, i64 noundef %237)
  %239 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %240 = extractvalue { ptr, i64 } %238, 0
  store ptr %240, ptr %239, align 8
  %241 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %242 = extractvalue { ptr, i64 } %238, 1
  store i64 %242, ptr %241, align 8
  %243 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #3
  br label %244

244:                                              ; preds = %228, %210, %205
  %245 = phi i1 [ false, %210 ], [ false, %205 ], [ %243, %228 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #3
  br i1 %245, label %246, label %248

246:                                              ; preds = %244
  %247 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 1, ptr %247, align 1, !tbaa !12
  br label %341

248:                                              ; preds = %244
  %249 = load ptr, ptr %10, align 8, !tbaa !5
  %250 = load i32, ptr %249, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  %252 = sext i32 %251 to i64
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef 0) #3
  %255 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %254) #3
  %256 = icmp ult i64 %252, %255
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #3
  br i1 %256, label %257, label %291

257:                                              ; preds = %248
  %258 = load ptr, ptr %13, align 8, !tbaa !5
  %259 = load ptr, ptr %9, align 8, !tbaa !5
  %260 = load i32, ptr %259, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %258, i64 noundef %261) #3
  %263 = load ptr, ptr %10, align 8, !tbaa !5
  %264 = load i32, ptr %263, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  %266 = sext i32 %265 to i64
  %267 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %262, i64 noundef %266) #3
  %268 = load i8, ptr %267, align 1, !tbaa !11
  %269 = sext i8 %268 to i32
  %270 = load ptr, ptr %12, align 8, !tbaa !5
  %271 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %270, i64 noundef 0) #3
  %272 = load i8, ptr %271, align 1, !tbaa !11
  %273 = sext i8 %272 to i32
  %274 = icmp eq i32 %269, %273
  br i1 %274, label %275, label %291

275:                                              ; preds = %257
  %276 = load ptr, ptr %14, align 8, !tbaa !5
  %277 = load ptr, ptr %9, align 8, !tbaa !5
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %276, i64 noundef %279) #3
  %281 = load ptr, ptr %10, align 8, !tbaa !5
  %282 = load i32, ptr %281, align 4, !tbaa !9
  %283 = add nsw i32 %282, 1
  %284 = sext i32 %283 to i64
  %285 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %280, i64 noundef %284)
  %286 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %287 = extractvalue { ptr, i64 } %285, 0
  store ptr %287, ptr %286, align 8
  %288 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %289 = extractvalue { ptr, i64 } %285, 1
  store i64 %289, ptr %288, align 8
  %290 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #3
  br label %291

291:                                              ; preds = %275, %257, %248
  %292 = phi i1 [ false, %257 ], [ false, %248 ], [ %290, %275 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #3
  br i1 %292, label %293, label %295

293:                                              ; preds = %291
  %294 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 1, ptr %294, align 1, !tbaa !12
  br label %341

295:                                              ; preds = %291
  br label %296

296:                                              ; preds = %295, %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %297 = load ptr, ptr %9, align 8, !tbaa !5
  %298 = load i32, ptr %297, align 4, !tbaa !9
  %299 = sub nsw i32 %298, 1
  store i32 %299, ptr %23, align 4, !tbaa !9
  %300 = load ptr, ptr %10, align 8, !tbaa !5
  %301 = load i32, ptr %11, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  %303 = load ptr, ptr %12, align 8, !tbaa !5
  %304 = load ptr, ptr %13, align 8, !tbaa !5
  %305 = load ptr, ptr %14, align 8, !tbaa !5
  %306 = load ptr, ptr %15, align 8, !tbaa !5
  %307 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %300, i32 noundef %302, ptr noundef nonnull align 8 dereferenceable(32) %303, ptr noundef nonnull align 8 dereferenceable(24) %304, ptr noundef nonnull align 8 dereferenceable(24) %305, ptr noundef nonnull align 1 dereferenceable(1) %306, ptr noundef nonnull align 4 dereferenceable(4) %307)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %308 = load ptr, ptr %9, align 8, !tbaa !5
  %309 = load i32, ptr %308, align 4, !tbaa !9
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %24, align 4, !tbaa !9
  %311 = load ptr, ptr %10, align 8, !tbaa !5
  %312 = load i32, ptr %11, align 4, !tbaa !9
  %313 = add nsw i32 %312, 1
  %314 = load ptr, ptr %12, align 8, !tbaa !5
  %315 = load ptr, ptr %13, align 8, !tbaa !5
  %316 = load ptr, ptr %14, align 8, !tbaa !5
  %317 = load ptr, ptr %15, align 8, !tbaa !5
  %318 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %311, i32 noundef %313, ptr noundef nonnull align 8 dereferenceable(32) %314, ptr noundef nonnull align 8 dereferenceable(24) %315, ptr noundef nonnull align 8 dereferenceable(24) %316, ptr noundef nonnull align 1 dereferenceable(1) %317, ptr noundef nonnull align 4 dereferenceable(4) %318)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  %319 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %320 = load ptr, ptr %10, align 8, !tbaa !5
  %321 = load i32, ptr %320, align 4, !tbaa !9
  %322 = sub nsw i32 %321, 1
  store i32 %322, ptr %25, align 4, !tbaa !9
  %323 = load i32, ptr %11, align 4, !tbaa !9
  %324 = add nsw i32 %323, 1
  %325 = load ptr, ptr %12, align 8, !tbaa !5
  %326 = load ptr, ptr %13, align 8, !tbaa !5
  %327 = load ptr, ptr %14, align 8, !tbaa !5
  %328 = load ptr, ptr %15, align 8, !tbaa !5
  %329 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %319, ptr noundef nonnull align 4 dereferenceable(4) %25, i32 noundef %324, ptr noundef nonnull align 8 dereferenceable(32) %325, ptr noundef nonnull align 8 dereferenceable(24) %326, ptr noundef nonnull align 8 dereferenceable(24) %327, ptr noundef nonnull align 1 dereferenceable(1) %328, ptr noundef nonnull align 4 dereferenceable(4) %329)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %331 = load ptr, ptr %10, align 8, !tbaa !5
  %332 = load i32, ptr %331, align 4, !tbaa !9
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr %26, align 4, !tbaa !9
  %334 = load i32, ptr %11, align 4, !tbaa !9
  %335 = add nsw i32 %334, 1
  %336 = load ptr, ptr %12, align 8, !tbaa !5
  %337 = load ptr, ptr %13, align 8, !tbaa !5
  %338 = load ptr, ptr %14, align 8, !tbaa !5
  %339 = load ptr, ptr %15, align 8, !tbaa !5
  %340 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %330, ptr noundef nonnull align 4 dereferenceable(4) %26, i32 noundef %335, ptr noundef nonnull align 8 dereferenceable(32) %336, ptr noundef nonnull align 8 dereferenceable(24) %337, ptr noundef nonnull align 8 dereferenceable(24) %338, ptr noundef nonnull align 1 dereferenceable(1) %339, ptr noundef nonnull align 4 dereferenceable(4) %340)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  br label %341

341:                                              ; preds = %296, %293, %246, %203, %157, %91, %75, %49
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #0 align 2

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

; 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 noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #1 align 2

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


; 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"

%"struct.std::_Bit_reference" = type { ptr, i64 }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %0, ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 4 dereferenceable(4) %7) local_unnamed_addr #0 {
  %9 = alloca %"struct.std::_Bit_reference", align 8
  %10 = alloca %"struct.std::_Bit_reference", align 8
  %11 = alloca %"struct.std::_Bit_reference", align 8
  %12 = alloca %"struct.std::_Bit_reference", align 8
  %13 = alloca %"struct.std::_Bit_reference", align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = load i32, ptr %0, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %201, label %21

21:                                               ; preds = %8
  %22 = zext nneg i32 %19 to i64
  %23 = tail call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %.not = icmp ugt i64 %23, %22
  br i1 %.not, label %24, label %201

24:                                               ; preds = %21
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 0
  br i1 %26, label %201, label %27

27:                                               ; preds = %24
  %28 = zext nneg i32 %25 to i64
  %29 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #3
  %30 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %29) #3
  %.not98 = icmp ugt i64 %30, %28
  br i1 %.not98, label %31, label %201

31:                                               ; preds = %27
  %32 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #3
  %33 = sext i32 %2 to i64
  %34 = urem i64 %33, %32
  %35 = trunc i64 %34 to i32
  %sext = shl i64 %34, 32
  %36 = ashr exact i64 %sext, 32
  %37 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %36) #3
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = load i32, ptr %0, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %40) #3
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %41, i64 noundef %43) #3
  %45 = load i8, ptr %44, align 1, !tbaa !9
  %.not99 = icmp eq i8 %38, %45
  br i1 %.not99, label %46, label %201

46:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #3
  %47 = load i32, ptr %0, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %48) #3
  %50 = load i32, ptr %1, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = tail call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %49, i64 noundef %51)
  %53 = extractvalue { ptr, i64 } %52, 0
  store ptr %53, ptr %9, align 8
  %54 = getelementptr inbounds i8, ptr %9, i64 8
  %55 = extractvalue { ptr, i64 } %52, 1
  store i64 %55, ptr %54, align 8
  %56 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #3
  br i1 %56, label %201, label %57

57:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #3
  %58 = load i32, ptr %0, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %59) #3
  %61 = load i32, ptr %1, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %60, i64 noundef %62)
  %64 = extractvalue { ptr, i64 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = getelementptr inbounds i8, ptr %10, i64 8
  %66 = extractvalue { ptr, i64 } %63, 1
  store i64 %66, ptr %65, align 8
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %10, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  %68 = add nsw i32 %35, 1
  %69 = sext i32 %68 to i64
  %70 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #3
  %71 = icmp eq i64 %70, %69
  br i1 %71, label %72, label %192

72:                                               ; preds = %57
  %73 = load i32, ptr %7, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %7, align 4, !tbaa !5
  %75 = load i32, ptr %0, align 4, !tbaa !5
  %76 = icmp sgt i32 %75, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #3
  br i1 %76, label %77, label %.critedge

77:                                               ; preds = %72
  %78 = add nsw i32 %75, -1
  %79 = zext nneg i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %79) #3
  %81 = load i32, ptr %1, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %80, i64 noundef %82) #3
  %84 = load i8, ptr %83, align 1, !tbaa !9
  %85 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 0) #3
  %86 = load i8, ptr %85, align 1, !tbaa !9
  %87 = icmp eq i8 %84, %86
  br i1 %87, label %88, label %.critedge

88:                                               ; preds = %77
  %89 = load i32, ptr %0, align 4, !tbaa !5
  %90 = add nsw i32 %89, -1
  %91 = sext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %91) #3
  %93 = load i32, ptr %1, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %92, i64 noundef %94)
  %96 = extractvalue { ptr, i64 } %95, 0
  store ptr %96, ptr %11, align 8
  %97 = getelementptr inbounds i8, ptr %11, i64 8
  %98 = extractvalue { ptr, i64 } %95, 1
  store i64 %98, ptr %97, align 8
  %99 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  br i1 %99, label %100, label %101

100:                                              ; preds = %88
  store i8 1, ptr %6, align 1, !tbaa !10
  br label %201

.critedge:                                        ; preds = %72, %77
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  br label %101

101:                                              ; preds = %.critedge, %88
  %102 = load i32, ptr %0, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %106 = icmp ugt i64 %105, %104
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #3
  br i1 %106, label %107, label %.critedge2

107:                                              ; preds = %101
  %108 = load i32, ptr %0, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %110) #3
  %112 = load i32, ptr %1, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %111, i64 noundef %113) #3
  %115 = load i8, ptr %114, align 1, !tbaa !9
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 0) #3
  %117 = load i8, ptr %116, align 1, !tbaa !9
  %118 = icmp eq i8 %115, %117
  br i1 %118, label %119, label %.critedge2

119:                                              ; preds = %107
  %120 = load i32, ptr %0, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %122) #3
  %124 = load i32, ptr %1, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %123, i64 noundef %125)
  %127 = extractvalue { ptr, i64 } %126, 0
  store ptr %127, ptr %12, align 8
  %128 = getelementptr inbounds i8, ptr %12, i64 8
  %129 = extractvalue { ptr, i64 } %126, 1
  store i64 %129, ptr %128, align 8
  %130 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #3
  br i1 %130, label %131, label %132

131:                                              ; preds = %119
  store i8 1, ptr %6, align 1, !tbaa !10
  br label %201

.critedge2:                                       ; preds = %101, %107
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #3
  br label %132

132:                                              ; preds = %.critedge2, %119
  %133 = load i32, ptr %1, align 4, !tbaa !5
  %134 = icmp sgt i32 %133, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #3
  br i1 %134, label %135, label %.critedge4

135:                                              ; preds = %132
  %136 = load i32, ptr %0, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %137) #3
  %139 = load i32, ptr %1, align 4, !tbaa !5
  %140 = add nsw i32 %139, -1
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %138, i64 noundef %141) #3
  %143 = load i8, ptr %142, align 1, !tbaa !9
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 0) #3
  %145 = load i8, ptr %144, align 1, !tbaa !9
  %146 = icmp eq i8 %143, %145
  br i1 %146, label %147, label %.critedge4

147:                                              ; preds = %135
  %148 = load i32, ptr %0, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %149) #3
  %151 = load i32, ptr %1, align 4, !tbaa !5
  %152 = add nsw i32 %151, -1
  %153 = sext i32 %152 to i64
  %154 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %150, i64 noundef %153)
  %155 = extractvalue { ptr, i64 } %154, 0
  store ptr %155, ptr %13, align 8
  %156 = getelementptr inbounds i8, ptr %13, i64 8
  %157 = extractvalue { ptr, i64 } %154, 1
  store i64 %157, ptr %156, align 8
  %158 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  br i1 %158, label %159, label %160

159:                                              ; preds = %147
  store i8 1, ptr %6, align 1, !tbaa !10
  br label %201

.critedge4:                                       ; preds = %132, %135
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  br label %160

160:                                              ; preds = %.critedge4, %147
  %161 = load i32, ptr %1, align 4, !tbaa !5
  %162 = add nsw i32 %161, 1
  %163 = sext i32 %162 to i64
  %164 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #3
  %165 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %164) #3
  %166 = icmp ugt i64 %165, %163
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #3
  br i1 %166, label %167, label %.critedge6

167:                                              ; preds = %160
  %168 = load i32, ptr %0, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %169) #3
  %171 = load i32, ptr %1, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %170, i64 noundef %173) #3
  %175 = load i8, ptr %174, align 1, !tbaa !9
  %176 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 0) #3
  %177 = load i8, ptr %176, align 1, !tbaa !9
  %178 = icmp eq i8 %175, %177
  br i1 %178, label %179, label %.critedge6

179:                                              ; preds = %167
  %180 = load i32, ptr %0, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %181) #3
  %183 = load i32, ptr %1, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  %185 = sext i32 %184 to i64
  %186 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %182, i64 noundef %185)
  %187 = extractvalue { ptr, i64 } %186, 0
  store ptr %187, ptr %14, align 8
  %188 = getelementptr inbounds i8, ptr %14, i64 8
  %189 = extractvalue { ptr, i64 } %186, 1
  store i64 %189, ptr %188, align 8
  %190 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  br i1 %190, label %191, label %192

191:                                              ; preds = %179
  store i8 1, ptr %6, align 1, !tbaa !10
  br label %201

.critedge6:                                       ; preds = %160, %167
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  br label %192

192:                                              ; preds = %179, %.critedge6, %57
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  %193 = load i32, ptr %0, align 4, !tbaa !5
  %194 = add nsw i32 %193, -1
  store i32 %194, ptr %15, align 4, !tbaa !5
  call void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %68, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  %195 = load i32, ptr %0, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %16, align 4, !tbaa !5
  call void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %1, i32 noundef %68, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #3
  %197 = load i32, ptr %1, align 4, !tbaa !5
  %198 = add nsw i32 %197, -1
  store i32 %198, ptr %17, align 4, !tbaa !5
  call void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %0, ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef %68, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #3
  %199 = load i32, ptr %1, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %18, align 4, !tbaa !5
  call void @_Z3dfsRKiS0_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS6_SaIS6_EERS9_IS9_IbSaIbEESaISF_EERbRi(ptr noundef nonnull align 4 dereferenceable(4) %0, ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef %68, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #3
  br label %201

201:                                              ; preds = %46, %31, %8, %21, %24, %27, %192, %191, %159, %131, %100
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #0 align 2

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

; 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 noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #1 align 2

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass