; LLVM IR from p4lang/p4c :: backends/tofino/bf-utils/dynamic_hash (bfn_hash_algorithm)

; 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<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.bfn_hash_algorithm_ = type { i32, i8, i8, i32, i32, i8, i64, i64, i64, ptr }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL16construct_streamP19bfn_hash_algorithm_mPh(ptr noundef, i64 noundef, ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13calculate_crcP19bfn_hash_algorithm_jPhjS1_(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  store i8 0, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %25, i32 0, i32 4
  %27 = load i32, ptr %26, align 4, !tbaa !12
  %28 = add nsw i32 %27, 7
  %29 = sdiv i32 %28, 8
  %30 = trunc i32 %29 to i8
  store i8 %30, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = add i32 %31, 7
  %33 = udiv i32 %32, 8
  %34 = trunc i32 %33 to i8
  store i8 %34, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  %35 = load i8, ptr %13, align 1, !tbaa !11
  %36 = zext i8 %35 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  store i8 0, ptr %16, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #4
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %36, ptr noundef nonnull align 1 dereferenceable(1) %16, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %37 unwind label %97

37:                                               ; preds = %5
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = load i8, ptr %14, align 1, !tbaa !11
  %40 = zext i8 %39 to i64
  %41 = mul i64 %40, 1
  call void @llvm.memset.p0.i64(ptr align 1 %38, i8 0, i64 %41, i1 false)
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %43, i32 0, i32 7
  %45 = load i64, ptr %44, align 8, !tbaa !18
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZL16construct_streamP19bfn_hash_algorithm_mPh(ptr noundef %42, i64 noundef %45, ptr noundef %46)
          to label %47 unwind label %101

47:                                               ; preds = %37
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %49, i32 0, i32 8
  %51 = load i64, ptr %50, align 8, !tbaa !19
  %52 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  invoke void @_ZL16construct_streamP19bfn_hash_algorithm_mPh(ptr noundef %48, i64 noundef %51, ptr noundef %52)
          to label %53 unwind label %101

53:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load i8, ptr %14, align 1, !tbaa !11
  %56 = zext i8 %55 to i32
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i8, ptr %54, i64 %57
  %59 = load i8, ptr %13, align 1, !tbaa !11
  %60 = zext i8 %59 to i32
  %61 = sext i32 %60 to i64
  %62 = sub i64 0, %61
  %63 = getelementptr inbounds i8, ptr %58, i64 %62
  store ptr %63, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %243, %53
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = icmp ult i32 %65, %66
  br i1 %67, label %68, label %246

68:                                               ; preds = %64
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %69, i32 0, i32 5
  %71 = load i8, ptr %70, align 8, !tbaa !20, !range !21, !noundef !22
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %146

73:                                               ; preds = %68
  %74 = load ptr, ptr %20, align 8, !tbaa !5
  %75 = load i8, ptr %13, align 1, !tbaa !11
  %76 = zext i8 %75 to i32
  %77 = sub nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %74, i64 %78
  %80 = load i8, ptr %79, align 1, !tbaa !11
  %81 = zext i8 %80 to i32
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i8, ptr %82, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !11
  %87 = zext i8 %86 to i32
  %88 = xor i32 %81, %87
  %89 = trunc i32 %88 to i8
  store i8 %89, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %90 = load i8, ptr %13, align 1, !tbaa !11
  %91 = zext i8 %90 to i32
  %92 = sub nsw i32 %91, 1
  store i32 %92, ptr %21, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %131, %73
  %94 = load i32, ptr %21, align 4, !tbaa !9
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %105, label %96

96:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %134

97:                                               ; preds = %5
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %18, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %19, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  br label %323

101:                                              ; preds = %47, %37
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %18, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %19, align 4
  br label %322

105:                                              ; preds = %93
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = load i32, ptr %21, align 4, !tbaa !9
  %108 = sub nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i8, ptr %106, i64 %109
  %111 = load i8, ptr %110, align 1, !tbaa !11
  %112 = zext i8 %111 to i32
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %113, i32 0, i32 9
  %115 = load ptr, ptr %114, align 8, !tbaa !23
  %116 = load i8, ptr %12, align 1, !tbaa !11
  %117 = zext i8 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %21, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %119, i64 %121
  %123 = load i8, ptr %122, align 1, !tbaa !11
  %124 = zext i8 %123 to i32
  %125 = xor i32 %112, %124
  %126 = trunc i32 %125 to i8
  %127 = load ptr, ptr %20, align 8, !tbaa !5
  %128 = load i32, ptr %21, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds i8, ptr %127, i64 %129
  store i8 %126, ptr %130, align 1, !tbaa !11
  br label %131

131:                                              ; preds = %105
  %132 = load i32, ptr %21, align 4, !tbaa !9
  %133 = add nsw i32 %132, -1
  store i32 %133, ptr %21, align 4, !tbaa !9
  br label %93, !llvm.loop !24

134:                                              ; preds = %96
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %135, i32 0, i32 9
  %137 = load ptr, ptr %136, align 8, !tbaa !23
  %138 = load i8, ptr %12, align 1, !tbaa !11
  %139 = zext i8 %138 to i64
  %140 = getelementptr inbounds ptr, ptr %137, i64 %139
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %141, i64 0
  %143 = load i8, ptr %142, align 1, !tbaa !11
  %144 = load ptr, ptr %20, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 0
  store i8 %143, ptr %145, align 1, !tbaa !11
  br label %242

146:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #4
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %147, i32 0, i32 4
  %149 = load i32, ptr %148, align 4, !tbaa !12
  %150 = srem i32 %149, 8
  %151 = trunc i32 %150 to i8
  store i8 %151, ptr %22, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #4
  %152 = load i8, ptr %22, align 1, !tbaa !11
  %153 = zext i8 %152 to i32
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %156

155:                                              ; preds = %146
  br label %161

156:                                              ; preds = %146
  %157 = load i8, ptr %22, align 1, !tbaa !11
  %158 = zext i8 %157 to i32
  %159 = shl i32 1, %158
  %160 = sub nsw i32 %159, 1
  br label %161

161:                                              ; preds = %156, %155
  %162 = phi i32 [ 255, %155 ], [ %160, %156 ]
  %163 = trunc i32 %162 to i8
  store i8 %163, ptr %23, align 1, !tbaa !11
  %164 = load ptr, ptr %20, align 8, !tbaa !5
  %165 = load i8, ptr %22, align 1, !tbaa !11
  %166 = invoke noundef zeroext i8 @_ZL8get_bytePhhh(ptr noundef %164, i8 noundef zeroext 0, i8 noundef zeroext %165)
          to label %167 unwind label %185

167:                                              ; preds = %161
  %168 = zext i8 %166 to i32
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = zext i32 %170 to i64
  %172 = getelementptr inbounds i8, ptr %169, i64 %171
  %173 = load i8, ptr %172, align 1, !tbaa !11
  %174 = zext i8 %173 to i32
  %175 = xor i32 %168, %174
  %176 = trunc i32 %175 to i8
  store i8 %176, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
  store i8 0, ptr %24, align 1, !tbaa !11
  br label %177

177:                                              ; preds = %219, %167
  %178 = load i8, ptr %24, align 1, !tbaa !11
  %179 = zext i8 %178 to i32
  %180 = load i8, ptr %13, align 1, !tbaa !11
  %181 = zext i8 %180 to i32
  %182 = sub nsw i32 %181, 1
  %183 = icmp slt i32 %179, %182
  br i1 %183, label %189, label %184

184:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #4
  br label %222

185:                                              ; preds = %161
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %18, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %322

189:                                              ; preds = %177
  %190 = load ptr, ptr %20, align 8, !tbaa !5
  %191 = load i8, ptr %24, align 1, !tbaa !11
  %192 = zext i8 %191 to i32
  %193 = add nsw i32 %192, 1
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds i8, ptr %190, i64 %194
  %196 = load i8, ptr %195, align 1, !tbaa !11
  %197 = zext i8 %196 to i32
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %198, i32 0, i32 9
  %200 = load ptr, ptr %199, align 8, !tbaa !23
  %201 = load i8, ptr %12, align 1, !tbaa !11
  %202 = zext i8 %201 to i64
  %203 = getelementptr inbounds ptr, ptr %200, i64 %202
  %204 = load ptr, ptr %203, align 8, !tbaa !5
  %205 = load i8, ptr %24, align 1, !tbaa !11
  %206 = zext i8 %205 to i64
  %207 = getelementptr inbounds i8, ptr %204, i64 %206
  %208 = load i8, ptr %207, align 1, !tbaa !11
  %209 = zext i8 %208 to i32
  %210 = xor i32 %197, %209
  %211 = load i8, ptr %23, align 1, !tbaa !11
  %212 = zext i8 %211 to i32
  %213 = and i32 %210, %212
  %214 = trunc i32 %213 to i8
  %215 = load ptr, ptr %20, align 8, !tbaa !5
  %216 = load i8, ptr %24, align 1, !tbaa !11
  %217 = zext i8 %216 to i64
  %218 = getelementptr inbounds i8, ptr %215, i64 %217
  store i8 %214, ptr %218, align 1, !tbaa !11
  store i8 -1, ptr %23, align 1, !tbaa !11
  br label %219

219:                                              ; preds = %189
  %220 = load i8, ptr %24, align 1, !tbaa !11
  %221 = add i8 %220, 1
  store i8 %221, ptr %24, align 1, !tbaa !11
  br label %177, !llvm.loop !26

222:                                              ; preds = %184
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %223, i32 0, i32 9
  %225 = load ptr, ptr %224, align 8, !tbaa !23
  %226 = load i8, ptr %12, align 1, !tbaa !11
  %227 = zext i8 %226 to i64
  %228 = getelementptr inbounds ptr, ptr %225, i64 %227
  %229 = load ptr, ptr %228, align 8, !tbaa !5
  %230 = load i8, ptr %13, align 1, !tbaa !11
  %231 = zext i8 %230 to i32
  %232 = sub nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds i8, ptr %229, i64 %233
  %235 = load i8, ptr %234, align 1, !tbaa !11
  %236 = load ptr, ptr %20, align 8, !tbaa !5
  %237 = load i8, ptr %13, align 1, !tbaa !11
  %238 = zext i8 %237 to i32
  %239 = sub nsw i32 %238, 1
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds i8, ptr %236, i64 %240
  store i8 %235, ptr %241, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #4
  br label %242

242:                                              ; preds = %222, %134
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %11, align 4, !tbaa !9
  %245 = add i32 %244, 1
  store i32 %245, ptr %11, align 4, !tbaa !9
  br label %64, !llvm.loop !27

246:                                              ; preds = %64
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %266, %246
  %248 = load i32, ptr %11, align 4, !tbaa !9
  %249 = load i8, ptr %13, align 1, !tbaa !11
  %250 = zext i8 %249 to i32
  %251 = icmp ult i32 %248, %250
  br i1 %251, label %252, label %269

252:                                              ; preds = %247
  %253 = load i32, ptr %11, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %254) #4
  %256 = load i8, ptr %255, align 1, !tbaa !11
  %257 = zext i8 %256 to i32
  %258 = load ptr, ptr %20, align 8, !tbaa !5
  %259 = load i32, ptr %11, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds i8, ptr %258, i64 %260
  %262 = load i8, ptr %261, align 1, !tbaa !11
  %263 = zext i8 %262 to i32
  %264 = xor i32 %263, %257
  %265 = trunc i32 %264 to i8
  store i8 %265, ptr %261, align 1, !tbaa !11
  br label %266

266:                                              ; preds = %252
  %267 = load i32, ptr %11, align 4, !tbaa !9
  %268 = add i32 %267, 1
  store i32 %268, ptr %11, align 4, !tbaa !9
  br label %247, !llvm.loop !28

269:                                              ; preds = %247
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %270, i32 0, i32 2
  %272 = load i8, ptr %271, align 1, !tbaa !29, !range !21, !noundef !22
  %273 = trunc i8 %272 to i1
  br i1 %273, label %274, label %321

274:                                              ; preds = %269
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %275

275:                                              ; preds = %302, %274
  %276 = load i32, ptr %11, align 4, !tbaa !9
  %277 = load i8, ptr %14, align 1, !tbaa !11
  %278 = zext i8 %277 to i32
  %279 = load i8, ptr %13, align 1, !tbaa !11
  %280 = zext i8 %279 to i32
  %281 = sub nsw i32 %278, %280
  %282 = icmp ult i32 %276, %281
  br i1 %282, label %283, label %305

283:                                              ; preds = %275
  %284 = load ptr, ptr %20, align 8, !tbaa !5
  %285 = load i8, ptr %13, align 1, !tbaa !11
  %286 = zext i8 %285 to i32
  %287 = load i32, ptr %11, align 4, !tbaa !9
  %288 = load i8, ptr %13, align 1, !tbaa !11
  %289 = zext i8 %288 to i32
  %290 = urem i32 %287, %289
  %291 = sub i32 %286, %290
  %292 = sub i32 %291, 1
  %293 = zext i32 %292 to i64
  %294 = getelementptr inbounds i8, ptr %284, i64 %293
  %295 = load i8, ptr %294, align 1, !tbaa !11
  %296 = load ptr, ptr %20, align 8, !tbaa !5
  %297 = load i32, ptr %11, align 4, !tbaa !9
  %298 = zext i32 %297 to i64
  %299 = sub i64 0, %298
  %300 = getelementptr inbounds i8, ptr %296, i64 %299
  %301 = getelementptr inbounds i8, ptr %300, i64 -1
  store i8 %295, ptr %301, align 1, !tbaa !11
  br label %302

302:                                              ; preds = %283
  %303 = load i32, ptr %11, align 4, !tbaa !9
  %304 = add i32 %303, 1
  store i32 %304, ptr %11, align 4, !tbaa !9
  br label %275, !llvm.loop !30

305:                                              ; preds = %275
  %306 = load i32, ptr %7, align 4, !tbaa !9
  %307 = urem i32 %306, 8
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %320

309:                                              ; preds = %305
  %310 = load i32, ptr %7, align 4, !tbaa !9
  %311 = urem i32 %310, 8
  %312 = shl i32 1, %311
  %313 = sub nsw i32 %312, 1
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  %315 = getelementptr inbounds i8, ptr %314, i64 0
  %316 = load i8, ptr %315, align 1, !tbaa !11
  %317 = zext i8 %316 to i32
  %318 = and i32 %317, %313
  %319 = trunc i32 %318 to i8
  store i8 %319, ptr %315, align 1, !tbaa !11
  br label %320

320:                                              ; preds = %309, %305
  br label %321

321:                                              ; preds = %320, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  ret void

322:                                              ; preds = %185, %101
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  br label %323

323:                                              ; preds = %322, %97
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %324

324:                                              ; preds = %323
  %325 = load ptr, ptr %18, align 8
  %326 = load i32, ptr %19, align 4
  %327 = insertvalue { ptr, i32 } poison, ptr %325, 0
  %328 = insertvalue { ptr, i32 } %327, i32 %326, 1
  resume { ptr, i32 } %328
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZL8get_bytePhhh(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 12}
!13 = !{!"_ZTS19bfn_hash_algorithm_", !14, i64 0, !15, i64 4, !15, i64 5, !16, i64 8, !10, i64 12, !15, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !6, i64 48}
!14 = !{!"_ZTS19bfn_hash_alg_type_t", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS13bfn_crc_alg_t", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!13, !17, i64 32}
!19 = !{!13, !17, i64 40}
!20 = !{!13, !15, i64 16}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!13, !6, i64 48}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !25}
!29 = !{!13, !15, i64 5}
!30 = distinct !{!30, !25}


; 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<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL16construct_streamP19bfn_hash_algorithm_mPh(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13calculate_crcP19bfn_hash_algorithm_jPhjS1_(ptr noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i8, align 1
  %8 = alloca %"class.std::allocator", align 1
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = add nsw i32 %10, 7
  %12 = sdiv i32 %11, 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  %.mask = and i32 %12, 255
  %13 = zext nneg i32 %.mask to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #4
  store i8 0, ptr %7, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKhRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %13, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %14 unwind label %48

14:                                               ; preds = %5
  %15 = add i32 %1, 7
  %16 = lshr i32 %15, 3
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  %.mask85 = and i32 %16, 255
  %17 = zext nneg i32 %.mask85 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %4, i8 0, i64 %17, i1 false)
  %18 = getelementptr inbounds i8, ptr %0, i64 32
  %19 = load i64, ptr %18, align 8, !tbaa !16
  call void @_ZL16construct_streamP19bfn_hash_algorithm_mPh(ptr noundef nonnull %0, i64 noundef %19, ptr noundef %4)
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = load i64, ptr %20, align 8, !tbaa !17
  %22 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @_ZL16construct_streamP19bfn_hash_algorithm_mPh(ptr noundef nonnull %0, i64 noundef %21, ptr noundef %22)
  %23 = getelementptr inbounds i8, ptr %4, i64 %17
  %24 = sub nsw i64 0, %13
  %25 = getelementptr inbounds i8, ptr %23, i64 %24
  %.not103 = icmp eq i32 %3, 0
  br i1 %.not103, label %.preheader87, label %.lr.ph96

.lr.ph96:                                         ; preds = %14
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = add nsw i32 %.mask, -1
  %28 = icmp ugt i32 %.mask, 1
  %29 = getelementptr inbounds i8, ptr %0, i64 48
  %30 = sext i32 %27 to i64
  %31 = getelementptr inbounds i8, ptr %25, i64 %30
  %32 = zext i32 %27 to i64
  %wide.trip.count114 = zext i32 %3 to i64
  %33 = getelementptr inbounds i8, ptr %25, i64 1
  %34 = add nsw i64 %32, -1
  %xtraiter = and i64 %34, 1
  %35 = icmp eq i32 %27, 2
  %unroll_iter = and i64 %34, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %36

.preheader87:                                     ; preds = %112, %14
  %.not104 = icmp eq i32 %.mask, 0
  br i1 %.not104, label %._crit_edge99, label %.lr.ph98

36:                                               ; preds = %.lr.ph96, %112
  %indvars.iv111 = phi i64 [ 0, %.lr.ph96 ], [ %indvars.iv.next112, %112 ]
  %37 = load i8, ptr %26, align 8, !tbaa !18, !range !19, !noundef !20
  %38 = trunc nuw i8 %37 to i1
  br i1 %38, label %39, label %60

39:                                               ; preds = %36
  %40 = load i8, ptr %31, align 1, !tbaa !15
  %41 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv111
  %42 = load i8, ptr %41, align 1, !tbaa !15
  %43 = xor i8 %42, %40
  %44 = zext i8 %43 to i64
  br i1 %28, label %.lr.ph92, label %._crit_edge93

._crit_edge93:                                    ; preds = %.lr.ph92, %39
  %45 = load ptr, ptr %29, align 8, !tbaa !21
  %46 = getelementptr inbounds ptr, ptr %45, i64 %44
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  br label %112

48:                                               ; preds = %5
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  resume { ptr, i32 } %49

.lr.ph92:                                         ; preds = %39, %.lr.ph92
  %indvars.iv108 = phi i64 [ %indvars.iv.next109, %.lr.ph92 ], [ %32, %39 ]
  %50 = getelementptr i8, ptr %25, i64 %indvars.iv108
  %51 = getelementptr i8, ptr %50, i64 -1
  %52 = load i8, ptr %51, align 1, !tbaa !15
  %53 = load ptr, ptr %29, align 8, !tbaa !21
  %54 = getelementptr inbounds ptr, ptr %53, i64 %44
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = getelementptr inbounds i8, ptr %55, i64 %indvars.iv108
  %57 = load i8, ptr %56, align 1, !tbaa !15
  %58 = xor i8 %57, %52
  store i8 %58, ptr %50, align 1, !tbaa !15
  %indvars.iv.next109 = add nsw i64 %indvars.iv108, -1
  %59 = icmp sgt i64 %indvars.iv108, 1
  br i1 %59, label %.lr.ph92, label %._crit_edge93, !llvm.loop !23

60:                                               ; preds = %36
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = srem i32 %61, 8
  %63 = trunc nsw i32 %62 to i8
  %64 = call noundef zeroext i8 @_ZL8get_bytePhhh(ptr noundef %25, i8 noundef zeroext 0, i8 noundef zeroext %63)
  %65 = getelementptr inbounds i8, ptr %2, i64 %indvars.iv111
  %66 = load i8, ptr %65, align 1, !tbaa !15
  %67 = xor i8 %66, %64
  br i1 %28, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %60
  %.pre126 = zext i8 %67 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %60
  %68 = and i32 %62, 255
  %69 = icmp eq i32 %68, 0
  %notmask86 = shl nsw i32 -1, %68
  %70 = trunc i32 %notmask86 to i8
  %71 = xor i8 %70, -1
  %72 = zext i8 %67 to i64
  %73 = load i8, ptr %33, align 1, !tbaa !15
  %74 = load ptr, ptr %29, align 8, !tbaa !21
  %75 = getelementptr inbounds ptr, ptr %74, i64 %72
  %76 = load ptr, ptr %75, align 8, !tbaa !22
  %77 = load i8, ptr %76, align 1, !tbaa !15
  %78 = xor i8 %77, %73
  %79 = select i1 %69, i8 -1, i8 %71
  %80 = and i8 %78, %79
  store i8 %80, ptr %25, align 1, !tbaa !15
  switch i32 %27, label %.peel.next [
    i32 1, label %._crit_edge
    i32 2, label %._crit_edge.loopexit.unr-lcssa
  ]

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.peel.next, %.lr.ph
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next.1, %.peel.next ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %.peel.next.epil

.peel.next.epil:                                  ; preds = %._crit_edge.loopexit.unr-lcssa
  %81 = getelementptr inbounds i8, ptr %25, i64 %indvars.iv.unr
  %82 = getelementptr inbounds i8, ptr %81, i64 1
  %83 = load i8, ptr %82, align 1, !tbaa !15
  %84 = load ptr, ptr %29, align 8, !tbaa !21
  %85 = getelementptr inbounds ptr, ptr %84, i64 %72
  %86 = load ptr, ptr %85, align 8, !tbaa !22
  %87 = getelementptr inbounds i8, ptr %86, i64 %indvars.iv.unr
  %88 = load i8, ptr %87, align 1, !tbaa !15
  %89 = xor i8 %88, %83
  store i8 %89, ptr %81, align 1, !tbaa !15
  br label %._crit_edge

._crit_edge:                                      ; preds = %.peel.next.epil, %._crit_edge.loopexit.unr-lcssa, %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi127 = phi i64 [ %.pre126, %.._crit_edge_crit_edge ], [ %72, %.lr.ph ], [ %72, %._crit_edge.loopexit.unr-lcssa ], [ %72, %.peel.next.epil ]
  %90 = load ptr, ptr %29, align 8, !tbaa !21
  %91 = getelementptr inbounds ptr, ptr %90, i64 %.pre-phi127
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  %93 = getelementptr inbounds i8, ptr %92, i64 %30
  br label %112

.peel.next:                                       ; preds = %.lr.ph, %.peel.next
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.peel.next ], [ 1, %.lr.ph ]
  %niter = phi i64 [ %niter.next.1, %.peel.next ], [ 0, %.lr.ph ]
  %94 = getelementptr inbounds i8, ptr %25, i64 %indvars.iv
  %95 = getelementptr inbounds i8, ptr %94, i64 1
  %96 = load i8, ptr %95, align 1, !tbaa !15
  %97 = load ptr, ptr %29, align 8, !tbaa !21
  %98 = getelementptr inbounds ptr, ptr %97, i64 %72
  %99 = load ptr, ptr %98, align 8, !tbaa !22
  %100 = getelementptr inbounds i8, ptr %99, i64 %indvars.iv
  %101 = load i8, ptr %100, align 1, !tbaa !15
  %102 = xor i8 %101, %96
  store i8 %102, ptr %94, align 1, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %103 = getelementptr inbounds i8, ptr %25, i64 %indvars.iv.next
  %104 = getelementptr inbounds i8, ptr %103, i64 1
  %105 = load i8, ptr %104, align 1, !tbaa !15
  %106 = load ptr, ptr %29, align 8, !tbaa !21
  %107 = getelementptr inbounds ptr, ptr %106, i64 %72
  %108 = load ptr, ptr %107, align 8, !tbaa !22
  %109 = getelementptr inbounds i8, ptr %108, i64 %indvars.iv.next
  %110 = load i8, ptr %109, align 1, !tbaa !15
  %111 = xor i8 %110, %105
  store i8 %111, ptr %103, align 1, !tbaa !15
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.peel.next, !llvm.loop !25

112:                                              ; preds = %._crit_edge93, %._crit_edge
  %.sink129 = phi ptr [ %47, %._crit_edge93 ], [ %93, %._crit_edge ]
  %.sink128 = phi ptr [ %25, %._crit_edge93 ], [ %31, %._crit_edge ]
  %113 = load i8, ptr %.sink129, align 1, !tbaa !15
  store i8 %113, ptr %.sink128, align 1, !tbaa !15
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %.preheader87, label %36, !llvm.loop !27

.lr.ph98:                                         ; preds = %.preheader87, %.lr.ph98
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %.lr.ph98 ], [ 0, %.preheader87 ]
  %114 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv116) #4
  %115 = load i8, ptr %114, align 1, !tbaa !15
  %116 = getelementptr inbounds i8, ptr %25, i64 %indvars.iv116
  %117 = load i8, ptr %116, align 1, !tbaa !15
  %118 = xor i8 %117, %115
  store i8 %118, ptr %116, align 1, !tbaa !15
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %13
  br i1 %exitcond120.not, label %._crit_edge99, label %.lr.ph98, !llvm.loop !28

._crit_edge99:                                    ; preds = %.lr.ph98, %.preheader87
  %119 = getelementptr inbounds i8, ptr %0, i64 5
  %120 = load i8, ptr %119, align 1, !tbaa !29, !range !19, !noundef !20
  %121 = trunc nuw i8 %120 to i1
  br i1 %121, label %.preheader, label %154

.preheader:                                       ; preds = %._crit_edge99
  %invariant.gep = getelementptr i8, ptr %25, i64 -1
  %.not105 = icmp eq i32 %.mask85, %.mask
  br i1 %.not105, label %._crit_edge102, label %.lr.ph101.preheader

.lr.ph101.preheader:                              ; preds = %.preheader
  %122 = sub nsw i32 %.mask85, %.mask
  %wide.trip.count124 = zext i32 %122 to i64
  %xtraiter130 = and i64 %wide.trip.count124, 1
  %123 = icmp eq i32 %122, 1
  br i1 %123, label %._crit_edge102.loopexit.unr-lcssa, label %.lr.ph101.preheader.new

.lr.ph101.preheader.new:                          ; preds = %.lr.ph101.preheader
  %unroll_iter132 = and i64 %wide.trip.count124, 4294967294
  br label %.lr.ph101

.lr.ph101:                                        ; preds = %.lr.ph101, %.lr.ph101.preheader.new
  %indvars.iv121 = phi i64 [ 0, %.lr.ph101.preheader.new ], [ %indvars.iv.next122.1, %.lr.ph101 ]
  %niter133 = phi i64 [ 0, %.lr.ph101.preheader.new ], [ %niter133.next.1, %.lr.ph101 ]
  %124 = trunc nuw i64 %indvars.iv121 to i32
  %125 = urem i32 %124, %.mask
  %126 = xor i32 %125, -1
  %127 = add nsw i32 %.mask, %126
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds i8, ptr %25, i64 %128
  %130 = load i8, ptr %129, align 1, !tbaa !15
  %131 = sub nsw i64 0, %indvars.iv121
  %gep = getelementptr i8, ptr %invariant.gep, i64 %131
  store i8 %130, ptr %gep, align 1, !tbaa !15
  %indvars.iv.next122 = or disjoint i64 %indvars.iv121, 1
  %132 = trunc nuw i64 %indvars.iv.next122 to i32
  %133 = urem i32 %132, %.mask
  %134 = xor i32 %133, -1
  %135 = add nsw i32 %.mask, %134
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds i8, ptr %25, i64 %136
  %138 = load i8, ptr %137, align 1, !tbaa !15
  %139 = sub nsw i64 0, %indvars.iv.next122
  %gep.1 = getelementptr i8, ptr %invariant.gep, i64 %139
  store i8 %138, ptr %gep.1, align 1, !tbaa !15
  %indvars.iv.next122.1 = add nuw nsw i64 %indvars.iv121, 2
  %niter133.next.1 = add i64 %niter133, 2
  %niter133.ncmp.1 = icmp eq i64 %niter133.next.1, %unroll_iter132
  br i1 %niter133.ncmp.1, label %._crit_edge102.loopexit.unr-lcssa, label %.lr.ph101, !llvm.loop !30

._crit_edge102.loopexit.unr-lcssa:                ; preds = %.lr.ph101, %.lr.ph101.preheader
  %indvars.iv121.unr = phi i64 [ 0, %.lr.ph101.preheader ], [ %indvars.iv.next122.1, %.lr.ph101 ]
  %lcmp.mod131.not = icmp eq i64 %xtraiter130, 0
  br i1 %lcmp.mod131.not, label %._crit_edge102, label %.lr.ph101.epil

.lr.ph101.epil:                                   ; preds = %._crit_edge102.loopexit.unr-lcssa
  %140 = trunc nuw i64 %indvars.iv121.unr to i32
  %141 = urem i32 %140, %.mask
  %142 = xor i32 %141, -1
  %143 = add nsw i32 %.mask, %142
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds i8, ptr %25, i64 %144
  %146 = load i8, ptr %145, align 1, !tbaa !15
  %147 = sub nsw i64 0, %indvars.iv121.unr
  %gep.epil = getelementptr i8, ptr %invariant.gep, i64 %147
  store i8 %146, ptr %gep.epil, align 1, !tbaa !15
  br label %._crit_edge102

._crit_edge102:                                   ; preds = %.lr.ph101.epil, %._crit_edge102.loopexit.unr-lcssa, %.preheader
  %148 = and i32 %1, 7
  %.not = icmp eq i32 %148, 0
  br i1 %.not, label %154, label %149

149:                                              ; preds = %._crit_edge102
  %notmask = shl nsw i32 -1, %148
  %150 = load i8, ptr %4, align 1, !tbaa !15
  %151 = trunc nsw i32 %notmask to i8
  %152 = xor i8 %151, -1
  %153 = and i8 %150, %152
  store i8 %153, ptr %4, align 1, !tbaa !15
  br label %154

154:                                              ; preds = %._crit_edge102, %149, %._crit_edge99
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZL8get_bytePhhh(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 12}
!6 = !{!"_ZTS19bfn_hash_algorithm_", !7, i64 0, !10, i64 4, !10, i64 5, !11, i64 8, !12, i64 12, !10, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !14, i64 48}
!7 = !{!"_ZTS19bfn_hash_alg_type_t", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTS13bfn_crc_alg_t", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!6, !13, i64 32}
!17 = !{!6, !13, i64 40}
!18 = !{!6, !10, i64 16}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!6, !14, i64 48}
!22 = !{!14, !14, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24, !26}
!26 = !{!"llvm.loop.peeled.count", i32 1}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !24}
!29 = !{!6, !10, i64 5}
!30 = distinct !{!30, !24}


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