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

; 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 long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #0

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

; 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 void @_Z15set_into_bitvecPmjmjj(ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17determine_crc_gfmPK19bfn_hash_algorithm_Pmjjbjj(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4, i32 noundef %5, i32 noundef %6) #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  %31 = zext i1 %4 to i8
  store i8 %31, ptr %12, align 1, !tbaa !11
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %32, i32 0, i32 4
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = sub nsw i32 %34, 1
  store i32 %35, ptr %15, align 4, !tbaa !9
  %36 = load i32, ptr %14, align 4, !tbaa !9
  %37 = add i32 %36, 7
  %38 = udiv i32 %37, 8
  %39 = mul i32 %38, 8
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = add i32 %40, %39
  store i32 %41, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %42 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %42, ptr %16, align 4, !tbaa !9
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %43, i32 0, i32 5
  %45 = load i8, ptr %44, align 8, !tbaa !18, !range !19, !noundef !20
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %50

47:                                               ; preds = %7
  %48 = load i32, ptr %16, align 4, !tbaa !9
  %49 = xor i32 %48, 7
  store i32 %49, ptr %16, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %47, %7
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #3
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #3
  call void @_ZNSaImEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #3
  invoke void @_ZNSt6vectorImSaImEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %52, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %53 unwind label %59

53:                                               ; preds = %50
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %72, %53
  %55 = load i32, ptr %21, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %63, label %58

58:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  br label %75

59:                                               ; preds = %50
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %19, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %20, align 4
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  br label %201

63:                                               ; preds = %54
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load i32, ptr %21, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i64, ptr %64, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !21
  %69 = load i32, ptr %21, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %70) #3
  store i64 %68, ptr %71, align 8, !tbaa !21
  br label %72

72:                                               ; preds = %63
  %73 = load i32, ptr %21, align 4, !tbaa !9
  %74 = add i32 %73, 1
  store i32 %74, ptr %21, align 4, !tbaa !9
  br label %54, !llvm.loop !22

75:                                               ; preds = %58
  %76 = load i8, ptr %12, align 1, !tbaa !11, !range !19, !noundef !20
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %87

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %79 = load i32, ptr %16, align 4, !tbaa !9
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %80, i32 0, i32 4
  %82 = load i32, ptr %81, align 4, !tbaa !13
  %83 = add i32 %79, %82
  store i32 %83, ptr %22, align 4, !tbaa !9
  %84 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = load i32, ptr %22, align 4, !tbaa !9
  call void @_Z15set_into_bitvecPmjmjj(ptr noundef %84, i32 noundef %85, i64 noundef 1, i32 noundef %86, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  br label %87

87:                                               ; preds = %78, %75
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %88, i32 0, i32 7
  %90 = load i64, ptr %89, align 8, !tbaa !24
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %92, label %118

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %94, i32 0, i32 4
  %96 = load i32, ptr %95, align 4, !tbaa !13
  %97 = sub nsw i32 %96, 1
  %98 = sub i32 %93, %97
  store i32 %98, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %99 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = load i32, ptr %23, align 4, !tbaa !9
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %102, i32 0, i32 4
  %104 = load i32, ptr %103, align 4, !tbaa !13
  %105 = call noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef %104)
  store i64 %105, ptr %24, align 8, !tbaa !21
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %106, i32 0, i32 7
  %108 = load i64, ptr %107, align 8, !tbaa !24
  %109 = load i64, ptr %24, align 8, !tbaa !21
  %110 = xor i64 %109, %108
  store i64 %110, ptr %24, align 8, !tbaa !21
  %111 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = load i64, ptr %24, align 8, !tbaa !21
  %114 = load i32, ptr %23, align 4, !tbaa !9
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %115, i32 0, i32 4
  %117 = load i32, ptr %116, align 4, !tbaa !13
  call void @_Z15set_into_bitvecPmjmjj(ptr noundef %111, i32 noundef %112, i64 noundef %113, i32 noundef %114, i32 noundef %117)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  br label %118

118:                                              ; preds = %92, %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %120, i32 0, i32 4
  %122 = load i32, ptr %121, align 4, !tbaa !13
  %123 = sub i32 %119, %122
  store i32 %123, ptr %25, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %166, %118
  %125 = load i32, ptr %25, align 4, !tbaa !9
  %126 = icmp sge i32 %125, 0
  br i1 %126, label %128, label %127

127:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  br label %169

128:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %129 = load i32, ptr %25, align 4, !tbaa !9
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %130, i32 0, i32 4
  %132 = load i32, ptr %131, align 4, !tbaa !13
  %133 = add nsw i32 %129, %132
  store i32 %133, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  %134 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  %135 = load i32, ptr %10, align 4, !tbaa !9
  %136 = load i32, ptr %26, align 4, !tbaa !9
  %137 = call noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef %134, i32 noundef %135, i32 noundef %136, i32 noundef 1)
  store i64 %137, ptr %27, align 8, !tbaa !21
  %138 = load i64, ptr %27, align 8, !tbaa !21
  %139 = and i64 %138, 1
  store i64 %139, ptr %27, align 8, !tbaa !21
  %140 = load i64, ptr %27, align 8, !tbaa !21
  %141 = icmp eq i64 %140, 1
  br i1 %141, label %142, label %165

142:                                              ; preds = %128
  %143 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = load i32, ptr %26, align 4, !tbaa !9
  call void @_Z15set_into_bitvecPmjmjj(ptr noundef %143, i32 noundef %144, i64 noundef 0, i32 noundef %145, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %146 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  %147 = load i32, ptr %10, align 4, !tbaa !9
  %148 = load i32, ptr %25, align 4, !tbaa !9
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %149, i32 0, i32 4
  %151 = load i32, ptr %150, align 4, !tbaa !13
  %152 = call noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef %146, i32 noundef %147, i32 noundef %148, i32 noundef %151)
  store i64 %152, ptr %28, align 8, !tbaa !21
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %153, i32 0, i32 6
  %155 = load i64, ptr %154, align 8, !tbaa !25
  %156 = load i64, ptr %28, align 8, !tbaa !21
  %157 = xor i64 %156, %155
  store i64 %157, ptr %28, align 8, !tbaa !21
  %158 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = load i64, ptr %28, align 8, !tbaa !21
  %161 = load i32, ptr %25, align 4, !tbaa !9
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %162, i32 0, i32 4
  %164 = load i32, ptr %163, align 4, !tbaa !13
  call void @_Z15set_into_bitvecPmjmjj(ptr noundef %158, i32 noundef %159, i64 noundef %160, i32 noundef %161, i32 noundef %164)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  br label %165

165:                                              ; preds = %142, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %25, align 4, !tbaa !9
  %168 = add nsw i32 %167, -1
  store i32 %168, ptr %25, align 4, !tbaa !9
  br label %124, !llvm.loop !26

169:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %170 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  %171 = load i32, ptr %10, align 4, !tbaa !9
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %172, i32 0, i32 4
  %174 = load i32, ptr %173, align 4, !tbaa !13
  %175 = call noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef %170, i32 noundef %171, i32 noundef 0, i32 noundef %174)
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %176, i32 0, i32 8
  %178 = load i64, ptr %177, align 8, !tbaa !27
  %179 = xor i64 %175, %178
  store i64 %179, ptr %29, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  %180 = load i32, ptr %13, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = shl i64 1, %181
  store i64 %182, ptr %30, align 8, !tbaa !21
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %183, i32 0, i32 5
  %185 = load i8, ptr %184, align 8, !tbaa !18, !range !19, !noundef !20
  %186 = trunc i8 %185 to i1
  br i1 %186, label %187, label %196

187:                                              ; preds = %169
  %188 = load ptr, ptr %8, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.bfn_hash_algorithm_, ptr %188, i32 0, i32 4
  %190 = load i32, ptr %189, align 4, !tbaa !13
  %191 = sub nsw i32 %190, 1
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = sub i32 %191, %192
  %194 = zext i32 %193 to i64
  %195 = shl i64 1, %194
  store i64 %195, ptr %30, align 8, !tbaa !21
  br label %196

196:                                              ; preds = %187, %169
  %197 = load i64, ptr %30, align 8, !tbaa !21
  %198 = load i64, ptr %29, align 8, !tbaa !21
  %199 = and i64 %197, %198
  %200 = icmp ne i64 %199, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  ret i1 %200

201:                                              ; preds = %59
  %202 = load ptr, ptr %19, align 8
  %203 = load i32, ptr %20, align 4
  %204 = insertvalue { ptr, i32 } poison, ptr %202, 0
  %205 = insertvalue { ptr, i32 } %204, i32 %203, 1
  resume { ptr, i32 } %205
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 12}
!14 = !{!"_ZTS19bfn_hash_algorithm_", !15, i64 0, !12, i64 4, !12, i64 5, !16, i64 8, !10, i64 12, !12, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !6, i64 48}
!15 = !{!"_ZTS19bfn_hash_alg_type_t", !7, i64 0}
!16 = !{!"_ZTS13bfn_crc_alg_t", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!14, !12, i64 16}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!17, !17, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!14, !17, i64 32}
!25 = !{!14, !17, i64 24}
!26 = distinct !{!26, !23}
!27 = !{!14, !17, i64 40}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; 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 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 void @_Z15set_into_bitvecPmjmjj(ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17determine_crc_gfmPK19bfn_hash_algorithm_Pmjjbjj(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = getelementptr inbounds i8, ptr %0, i64 12
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = add i32 %6, 7
  %13 = and i32 %12, -8
  %14 = add i32 %13, -1
  %15 = add i32 %14, %11
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load i8, ptr %16, align 8, !tbaa !15, !range !16, !noundef !17
  %18 = trunc nuw i8 %17 to i1
  %19 = xor i32 %3, 7
  %spec.select = select i1 %18, i32 %19, i32 %3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #3
  %20 = zext i32 %2 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #3
  call void @_ZNSaImEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #3
  invoke void @_ZNSt6vectorImSaImEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %20, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %21 unwind label %22

21:                                               ; preds = %7
  call void @_ZNSt15__new_allocatorImED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #3
  %.not72 = icmp eq i32 %2, 0
  br i1 %.not72, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %21
  br i1 %4, label %27, label %31

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

.lr.ph:                                           ; preds = %21, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %21 ]
  %24 = getelementptr inbounds i64, ptr %1, i64 %indvars.iv
  %25 = load i64, ptr %24, align 8, !tbaa !18
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #3
  store i64 %25, ptr %26, align 8, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %20
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !19

27:                                               ; preds = %._crit_edge
  %28 = load i32, ptr %10, align 4, !tbaa !5
  %29 = add i32 %28, %spec.select
  %30 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @_Z15set_into_bitvecPmjmjj(ptr noundef %30, i32 noundef %2, i64 noundef 1, i32 noundef %29, i32 noundef 1)
  br label %31

31:                                               ; preds = %27, %._crit_edge
  %32 = getelementptr inbounds i8, ptr %0, i64 32
  %33 = load i64, ptr %32, align 8, !tbaa !21
  %.not = icmp eq i64 %33, 0
  br i1 %.not, label %44, label %34

34:                                               ; preds = %31
  %35 = load i32, ptr %10, align 4, !tbaa !5
  %.neg66 = add i32 %13, %11
  %36 = sub i32 %.neg66, %35
  %37 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %38 = load i32, ptr %10, align 4, !tbaa !5
  %39 = call noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef %37, i32 noundef %2, i32 noundef %36, i32 noundef %38)
  %40 = load i64, ptr %32, align 8, !tbaa !21
  %41 = xor i64 %40, %39
  %42 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %43 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z15set_into_bitvecPmjmjj(ptr noundef %42, i32 noundef %2, i64 noundef %41, i32 noundef %36, i32 noundef %43)
  br label %44

44:                                               ; preds = %34, %31
  %45 = load i32, ptr %10, align 4, !tbaa !5
  %46 = sub i32 %15, %45
  %47 = icmp sgt i32 %46, -1
  br i1 %47, label %.lr.ph70, label %._crit_edge71

.lr.ph70:                                         ; preds = %44
  %48 = getelementptr inbounds i8, ptr %0, i64 24
  br label %56

._crit_edge71:                                    ; preds = %71, %44
  %49 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = call noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef %49, i32 noundef %2, i32 noundef 0, i32 noundef %50)
  %52 = getelementptr inbounds i8, ptr %0, i64 40
  %53 = load i64, ptr %52, align 8, !tbaa !22
  %54 = load i8, ptr %16, align 8, !tbaa !15, !range !16, !noundef !17
  %55 = trunc nuw i8 %54 to i1
  br i1 %55, label %74, label %78

56:                                               ; preds = %.lr.ph70, %71
  %.06368 = phi i32 [ %46, %.lr.ph70 ], [ %72, %71 ]
  %57 = load i32, ptr %10, align 4, !tbaa !5
  %58 = add nsw i32 %57, %.06368
  %59 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %60 = call noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef %59, i32 noundef %2, i32 noundef %58, i32 noundef 1)
  %61 = and i64 %60, 1
  %.not65 = icmp eq i64 %61, 0
  br i1 %.not65, label %71, label %62

62:                                               ; preds = %56
  %63 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @_Z15set_into_bitvecPmjmjj(ptr noundef %63, i32 noundef %2, i64 noundef 0, i32 noundef %58, i32 noundef 1)
  %64 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = call noundef i64 @_Z15get_from_bitvecPKmjjj(ptr noundef %64, i32 noundef %2, i32 noundef %.06368, i32 noundef %65)
  %67 = load i64, ptr %48, align 8, !tbaa !23
  %68 = xor i64 %67, %66
  %69 = call noundef ptr @_ZNSt6vectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  %70 = load i32, ptr %10, align 4, !tbaa !5
  call void @_Z15set_into_bitvecPmjmjj(ptr noundef %69, i32 noundef %2, i64 noundef %68, i32 noundef %.06368, i32 noundef %70)
  br label %71

71:                                               ; preds = %62, %56
  %72 = add nsw i32 %.06368, -1
  %73 = icmp sgt i32 %.06368, 0
  br i1 %73, label %56, label %._crit_edge71, !llvm.loop !24

74:                                               ; preds = %._crit_edge71
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = xor i32 %5, -1
  %77 = add i32 %75, %76
  br label %78

78:                                               ; preds = %74, %._crit_edge71
  %.pn.in = phi i32 [ %77, %74 ], [ %5, %._crit_edge71 ]
  %.pn = zext nneg i32 %.pn.in to i64
  %.0 = shl nuw i64 1, %.pn
  %79 = xor i64 %53, %51
  %80 = and i64 %.0, %79
  %81 = icmp ne i64 %80, 0
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #3
  ret i1 %81
}

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!6, !10, i64 16}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!13, !13, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !13, i64 32}
!22 = !{!6, !13, i64 40}
!23 = !{!6, !13, i64 24}
!24 = distinct !{!24, !20}


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