; LLVM IR from xirc/cp-algorithm :: atcoder/abc196/D/main.ll (Z3dfsi)

; 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<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@H = external dso_local global i32, align 4
@W = external dso_local global i32, align 4
@A = external dso_local global i32, align 4
@B = external dso_local global i32, align 4
@G = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3dfsi(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::_Bit_reference", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %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 %"struct.std::_Bit_reference", align 8
  %16 = alloca %"struct.std::_Bit_reference", 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
  store i32 %0, ptr %3, align 4, !tbaa !5
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = load i32, ptr @H, align 4, !tbaa !5
  %23 = load i32, ptr @W, align 4, !tbaa !5
  %24 = mul nsw i32 %22, %23
  %25 = icmp eq i32 %21, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %1
  store i32 1, ptr %2, align 4
  br label %247

27:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = load i32, ptr @W, align 4, !tbaa !5
  %30 = sdiv i32 %28, %29
  store i32 %30, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = load i32, ptr @W, align 4, !tbaa !5
  %33 = srem i32 %31, %32
  store i32 %33, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #3
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %35) #3
  %37 = load i32, ptr %5, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %36, i64 noundef %38)
  %40 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 0
  %41 = extractvalue { ptr, i64 } %39, 0
  store ptr %41, ptr %40, align 8
  %42 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 1
  %43 = extractvalue { ptr, i64 } %39, 1
  store i64 %43, ptr %42, align 8
  %44 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #3
  br i1 %44, label %45, label %49

45:                                               ; preds = %27
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  %48 = call noundef i32 @_Z3dfsi(i32 noundef %47)
  store i32 %48, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %246

49:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !5
  %50 = load i32, ptr @B, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %52, label %84

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %54) #3
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %55, i64 noundef %57)
  %59 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %60 = extractvalue { ptr, i64 } %58, 0
  store ptr %60, ptr %59, align 8
  %61 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %62 = extractvalue { ptr, i64 } %58, 1
  store i64 %62, ptr %61, align 8
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %9, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  %64 = load i32, ptr @B, align 4, !tbaa !5
  %65 = add nsw i32 %64, -1
  store i32 %65, ptr @B, align 4, !tbaa !5
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  %68 = call noundef i32 @_Z3dfsi(i32 noundef %67)
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = add nsw i32 %69, %68
  store i32 %70, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %72) #3
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %73, i64 noundef %75)
  %77 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %78 = extractvalue { ptr, i64 } %76, 0
  store ptr %78, ptr %77, align 8
  %79 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %80 = extractvalue { ptr, i64 } %76, 1
  store i64 %80, ptr %79, align 8
  %81 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %10, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  %82 = load i32, ptr @B, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr @B, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %52, %49
  %85 = load i32, ptr @A, align 4, !tbaa !5
  %86 = icmp sgt i32 %85, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #3
  br i1 %86, label %87, label %106

87:                                               ; preds = %84
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  %90 = load i32, ptr @H, align 4, !tbaa !5
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %92, label %106

92:                                               ; preds = %87
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %95) #3
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %96, i64 noundef %98)
  %100 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %101 = extractvalue { ptr, i64 } %99, 0
  store ptr %101, ptr %100, align 8
  %102 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %103 = extractvalue { ptr, i64 } %99, 1
  store i64 %103, ptr %102, align 8
  %104 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #3
  %105 = xor i1 %104, true
  br label %106

106:                                              ; preds = %92, %87, %84
  %107 = phi i1 [ false, %87 ], [ false, %84 ], [ %105, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #3
  br i1 %107, label %108, label %164

108:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #3
  %109 = load i32, ptr %4, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %110) #3
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %111, i64 noundef %113)
  %115 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %116 = extractvalue { ptr, i64 } %114, 0
  store ptr %116, ptr %115, align 8
  %117 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %118 = extractvalue { ptr, i64 } %114, 1
  store i64 %118, ptr %117, align 8
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %12, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #3
  %120 = load i32, ptr %4, 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) @G, i64 noundef %122) #3
  %124 = load i32, ptr %5, 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 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %128 = extractvalue { ptr, i64 } %126, 0
  store ptr %128, ptr %127, align 8
  %129 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %130 = extractvalue { ptr, i64 } %126, 1
  store i64 %130, ptr %129, align 8
  %131 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  %132 = load i32, ptr @A, align 4, !tbaa !5
  %133 = add nsw i32 %132, -1
  store i32 %133, ptr @A, align 4, !tbaa !5
  %134 = load i32, ptr %3, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  %136 = call noundef i32 @_Z3dfsi(i32 noundef %135)
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = add nsw i32 %137, %136
  store i32 %138, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #3
  %139 = load i32, ptr %4, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %140) #3
  %142 = load i32, ptr %5, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %141, i64 noundef %143)
  %145 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %146 = extractvalue { ptr, i64 } %144, 0
  store ptr %146, ptr %145, align 8
  %147 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %148 = extractvalue { ptr, i64 } %144, 1
  store i64 %148, ptr %147, align 8
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #3
  %150 = load i32, ptr %4, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %152) #3
  %154 = load i32, ptr %5, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %153, i64 noundef %155)
  %157 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %158 = extractvalue { ptr, i64 } %156, 0
  store ptr %158, ptr %157, align 8
  %159 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %160 = extractvalue { ptr, i64 } %156, 1
  store i64 %160, ptr %159, align 8
  %161 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #3
  %162 = load i32, ptr @A, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr @A, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %108, %106
  %165 = load i32, ptr @A, align 4, !tbaa !5
  %166 = icmp sgt i32 %165, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #3
  br i1 %166, label %167, label %186

167:                                              ; preds = %164
  %168 = load i32, ptr %5, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  %170 = load i32, ptr @W, align 4, !tbaa !5
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %172, label %186

172:                                              ; preds = %167
  %173 = load i32, ptr %4, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %174) #3
  %176 = load i32, ptr %5, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  %178 = sext i32 %177 to i64
  %179 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %175, i64 noundef %178)
  %180 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %181 = extractvalue { ptr, i64 } %179, 0
  store ptr %181, ptr %180, align 8
  %182 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %183 = extractvalue { ptr, i64 } %179, 1
  store i64 %183, ptr %182, align 8
  %184 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #3
  %185 = xor i1 %184, true
  br label %186

186:                                              ; preds = %172, %167, %164
  %187 = phi i1 [ false, %167 ], [ false, %164 ], [ %185, %172 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #3
  br i1 %187, label %188, label %244

188:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  %189 = load i32, ptr %4, align 4, !tbaa !5
  %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) @G, i64 noundef %190) #3
  %192 = load i32, ptr %5, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %191, i64 noundef %193)
  %195 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %196 = extractvalue { ptr, i64 } %194, 0
  store ptr %196, ptr %195, align 8
  %197 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %198 = extractvalue { ptr, i64 } %194, 1
  store i64 %198, ptr %197, align 8
  %199 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %17, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %200 = load i32, ptr %4, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %201) #3
  %203 = load i32, ptr %5, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %202, i64 noundef %205)
  %207 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %208 = extractvalue { ptr, i64 } %206, 0
  store ptr %208, ptr %207, align 8
  %209 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %210 = extractvalue { ptr, i64 } %206, 1
  store i64 %210, ptr %209, align 8
  %211 = 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
  %212 = load i32, ptr @A, align 4, !tbaa !5
  %213 = add nsw i32 %212, -1
  store i32 %213, ptr @A, align 4, !tbaa !5
  %214 = load i32, ptr %3, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  %216 = call noundef i32 @_Z3dfsi(i32 noundef %215)
  %217 = load i32, ptr %8, align 4, !tbaa !5
  %218 = add nsw i32 %217, %216
  store i32 %218, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  %219 = load i32, ptr %4, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %220) #3
  %222 = load i32, ptr %5, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %221, i64 noundef %223)
  %225 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %226 = extractvalue { ptr, i64 } %224, 0
  store ptr %226, ptr %225, align 8
  %227 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %228 = extractvalue { ptr, i64 } %224, 1
  store i64 %228, ptr %227, align 8
  %229 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %19, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  %230 = load i32, ptr %4, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %231) #3
  %233 = load i32, ptr %5, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %232, i64 noundef %235)
  %237 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %238 = extractvalue { ptr, i64 } %236, 0
  store ptr %238, ptr %237, align 8
  %239 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %240 = extractvalue { ptr, i64 } %236, 1
  store i64 %240, ptr %239, align 8
  %241 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %20, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  %242 = load i32, ptr @A, align 4, !tbaa !5
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr @A, align 4, !tbaa !5
  br label %244

244:                                              ; preds = %188, %186
  %245 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %245, ptr %2, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %246

246:                                              ; preds = %244, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %247

247:                                              ; preds = %246, %26
  %248 = load i32, ptr %2, align 4
  ret i32 %248
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #2 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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"}


; 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<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<bool>, std::allocator<std::vector<bool>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@H = external dso_local local_unnamed_addr global i32, align 4
@W = external dso_local local_unnamed_addr global i32, align 4
@A = external dso_local local_unnamed_addr global i32, align 4
@B = external dso_local local_unnamed_addr global i32, align 4
@G = external dso_local global %"class.std::vector", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z3dfsi(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca %"struct.std::_Bit_reference", align 8
  %3 = alloca %"struct.std::_Bit_reference", align 8
  %4 = alloca %"struct.std::_Bit_reference", align 8
  %5 = alloca %"struct.std::_Bit_reference", align 8
  %6 = alloca %"struct.std::_Bit_reference", align 8
  %7 = alloca %"struct.std::_Bit_reference", align 8
  %8 = alloca %"struct.std::_Bit_reference", align 8
  %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 = load i32, ptr @H, align 4, !tbaa !5
  %16 = load i32, ptr @W, align 4, !tbaa !5
  %17 = mul nsw i32 %16, %15
  %18 = icmp eq i32 %17, %0
  br i1 %18, label %148, label %19

19:                                               ; preds = %1
  %20 = sdiv i32 %0, %16
  %21 = srem i32 %0, %16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
  %22 = sext i32 %20 to i64
  %23 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %24 = sext i32 %21 to i64
  %25 = tail call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %23, i64 noundef %24)
  %26 = extractvalue { ptr, i64 } %25, 0
  store ptr %26, ptr %2, align 8
  %27 = getelementptr inbounds i8, ptr %2, i64 8
  %28 = extractvalue { ptr, i64 } %25, 1
  store i64 %28, ptr %27, align 8
  %29 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %2) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
  br i1 %29, label %30, label %33

30:                                               ; preds = %19
  %31 = add nsw i32 %0, 1
  %32 = call noundef i32 @_Z3dfsi(i32 noundef %31)
  br label %148

33:                                               ; preds = %19
  %34 = load i32, ptr @B, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %36, label %55

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  %37 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %38 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %37, i64 noundef %24)
  %39 = extractvalue { ptr, i64 } %38, 0
  store ptr %39, ptr %3, align 8
  %40 = getelementptr inbounds i8, ptr %3, i64 8
  %41 = extractvalue { ptr, i64 } %38, 1
  store i64 %41, ptr %40, align 8
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %3, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  %43 = load i32, ptr @B, align 4, !tbaa !5
  %44 = add nsw i32 %43, -1
  store i32 %44, ptr @B, align 4, !tbaa !5
  %45 = add nsw i32 %0, 1
  %46 = call noundef i32 @_Z3dfsi(i32 noundef %45)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  %47 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %48 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %47, i64 noundef %24)
  %49 = extractvalue { ptr, i64 } %48, 0
  store ptr %49, ptr %4, align 8
  %50 = getelementptr inbounds i8, ptr %4, i64 8
  %51 = extractvalue { ptr, i64 } %48, 1
  store i64 %51, ptr %50, align 8
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %4, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  %53 = load i32, ptr @B, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr @B, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %36, %33
  %.0 = phi i32 [ %46, %36 ], [ 0, %33 ]
  %56 = load i32, ptr @A, align 4, !tbaa !5
  %57 = icmp sgt i32 %56, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  br i1 %57, label %58, label %.critedge

58:                                               ; preds = %55
  %59 = add nsw i32 %20, 1
  %60 = load i32, ptr @H, align 4, !tbaa !5
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %62, label %.critedge

62:                                               ; preds = %58
  %63 = sext i32 %59 to i64
  %64 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %63) #3
  %65 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %64, i64 noundef %24)
  %66 = extractvalue { ptr, i64 } %65, 0
  store ptr %66, ptr %5, align 8
  %67 = getelementptr inbounds i8, ptr %5, i64 8
  %68 = extractvalue { ptr, i64 } %65, 1
  store i64 %68, ptr %67, align 8
  %69 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  br i1 %69, label %.thread-pre-split_crit_edge, label %70

.thread-pre-split_crit_edge:                      ; preds = %62
  %.pr.pre = load i32, ptr @A, align 4, !tbaa !5
  br label %thread-pre-split

70:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  %71 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %72 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %71, i64 noundef %24)
  %73 = extractvalue { ptr, i64 } %72, 0
  store ptr %73, ptr %6, align 8
  %74 = getelementptr inbounds i8, ptr %6, i64 8
  %75 = extractvalue { ptr, i64 } %72, 1
  store i64 %75, ptr %74, align 8
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %6, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  %77 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %63) #3
  %78 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %77, i64 noundef %24)
  %79 = extractvalue { ptr, i64 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = getelementptr inbounds i8, ptr %7, i64 8
  %81 = extractvalue { ptr, i64 } %78, 1
  store i64 %81, ptr %80, align 8
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  %83 = load i32, ptr @A, align 4, !tbaa !5
  %84 = add nsw i32 %83, -1
  store i32 %84, ptr @A, align 4, !tbaa !5
  %85 = add nsw i32 %0, 1
  %86 = call noundef i32 @_Z3dfsi(i32 noundef %85)
  %87 = add nsw i32 %86, %.0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #3
  %88 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %89 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %88, i64 noundef %24)
  %90 = extractvalue { ptr, i64 } %89, 0
  store ptr %90, ptr %8, align 8
  %91 = getelementptr inbounds i8, ptr %8, i64 8
  %92 = extractvalue { ptr, i64 } %89, 1
  store i64 %92, ptr %91, align 8
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %8, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #3
  %94 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %63) #3
  %95 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %94, i64 noundef %24)
  %96 = extractvalue { ptr, i64 } %95, 0
  store ptr %96, ptr %9, align 8
  %97 = getelementptr inbounds i8, ptr %9, i64 8
  %98 = extractvalue { ptr, i64 } %95, 1
  store i64 %98, ptr %97, align 8
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %9, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #3
  %100 = load i32, ptr @A, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr @A, align 4, !tbaa !5
  br label %thread-pre-split

.critedge:                                        ; preds = %55, %58
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  br label %thread-pre-split

thread-pre-split:                                 ; preds = %.critedge, %.thread-pre-split_crit_edge, %70
  %102 = phi i32 [ %101, %70 ], [ %.pr.pre, %.thread-pre-split_crit_edge ], [ %56, %.critedge ]
  %.1 = phi i32 [ %87, %70 ], [ %.0, %.thread-pre-split_crit_edge ], [ %.0, %.critedge ]
  %103 = icmp sgt i32 %102, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #3
  br i1 %103, label %104, label %.critedge2

104:                                              ; preds = %thread-pre-split
  %105 = add nsw i32 %21, 1
  %106 = load i32, ptr @W, align 4, !tbaa !5
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %.critedge2

108:                                              ; preds = %104
  %109 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %110 = sext i32 %105 to i64
  %111 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %109, i64 noundef %110)
  %112 = extractvalue { ptr, i64 } %111, 0
  store ptr %112, ptr %10, align 8
  %113 = getelementptr inbounds i8, ptr %10, i64 8
  %114 = extractvalue { ptr, i64 } %111, 1
  store i64 %114, ptr %113, align 8
  %115 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  br i1 %115, label %148, label %116

116:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #3
  %117 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %118 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %117, i64 noundef %24)
  %119 = extractvalue { ptr, i64 } %118, 0
  store ptr %119, ptr %11, align 8
  %120 = getelementptr inbounds i8, ptr %11, i64 8
  %121 = extractvalue { ptr, i64 } %118, 1
  store i64 %121, ptr %120, align 8
  %122 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %11, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #3
  %123 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %124 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %123, i64 noundef %110)
  %125 = extractvalue { ptr, i64 } %124, 0
  store ptr %125, ptr %12, align 8
  %126 = getelementptr inbounds i8, ptr %12, i64 8
  %127 = extractvalue { ptr, i64 } %124, 1
  store i64 %127, ptr %126, align 8
  %128 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %12, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #3
  %129 = load i32, ptr @A, align 4, !tbaa !5
  %130 = add nsw i32 %129, -1
  store i32 %130, ptr @A, align 4, !tbaa !5
  %131 = add nsw i32 %0, 1
  %132 = call noundef i32 @_Z3dfsi(i32 noundef %131)
  %133 = add nsw i32 %132, %.1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #3
  %134 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %135 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %134, i64 noundef %24)
  %136 = extractvalue { ptr, i64 } %135, 0
  store ptr %136, ptr %13, align 8
  %137 = getelementptr inbounds i8, ptr %13, i64 8
  %138 = extractvalue { ptr, i64 } %135, 1
  store i64 %138, ptr %137, align 8
  %139 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #3
  %140 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @G, i64 noundef %22) #3
  %141 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %140, i64 noundef %110)
  %142 = extractvalue { ptr, i64 } %141, 0
  store ptr %142, ptr %14, align 8
  %143 = getelementptr inbounds i8, ptr %14, i64 8
  %144 = extractvalue { ptr, i64 } %141, 1
  store i64 %144, ptr %143, align 8
  %145 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext false) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  %146 = load i32, ptr @A, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr @A, align 4, !tbaa !5
  br label %148

.critedge2:                                       ; preds = %thread-pre-split, %104
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #3
  br label %148

148:                                              ; preds = %30, %.critedge2, %116, %108, %1
  %.143 = phi i32 [ 1, %1 ], [ %32, %30 ], [ %133, %116 ], [ %.1, %108 ], [ %.1, %.critedge2 ]
  ret i32 %.143
}

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

; Function Attrs: mustprogress 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 #2 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 #2 align 2

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass