; LLVM IR from ermig1979/Simd :: src/Simd (SimdBaseDetection)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"struct.Simd::Detection::Data" = type { %"struct.Simd::Deletable", i8, i8, i8, i32, i32, i32, %"struct.Simd::Point", %"class.std::vector", %"class.std::vector.4", %"class.std::vector.9", %"class.std::vector.14", %"class.std::vector.19", %"class.std::vector.24", %"class.std::vector.29" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::Point" = type { i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Simd::Detection::Data::Stage, std::allocator<Simd::Detection::Data::Stage>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Detection::Data::Stage, std::allocator<Simd::Detection::Data::Stage>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Detection::Data::Stage, std::allocator<Simd::Detection::Data::Stage>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Detection::Data::Stage, std::allocator<Simd::Detection::Data::Stage>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<Simd::Detection::Data::DTree, std::allocator<Simd::Detection::Data::DTree>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Detection::Data::DTree, std::allocator<Simd::Detection::Data::DTree>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Detection::Data::DTree, std::allocator<Simd::Detection::Data::DTree>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Detection::Data::DTree, std::allocator<Simd::Detection::Data::DTree>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<Simd::Detection::Data::DTreeNode, std::allocator<Simd::Detection::Data::DTreeNode>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Detection::Data::DTreeNode, std::allocator<Simd::Detection::Data::DTreeNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Detection::Data::DTreeNode, std::allocator<Simd::Detection::Data::DTreeNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Detection::Data::DTreeNode, std::allocator<Simd::Detection::Data::DTreeNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<Simd::Detection::Data::HaarFeature, std::allocator<Simd::Detection::Data::HaarFeature>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Detection::Data::HaarFeature, std::allocator<Simd::Detection::Data::HaarFeature>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Detection::Data::HaarFeature, std::allocator<Simd::Detection::Data::HaarFeature>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Detection::Data::HaarFeature, std::allocator<Simd::Detection::Data::HaarFeature>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<Simd::Detection::Data::LbpFeature, std::allocator<Simd::Detection::Data::LbpFeature>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Detection::Data::LbpFeature, std::allocator<Simd::Detection::Data::LbpFeature>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Detection::Data::LbpFeature, std::allocator<Simd::Detection::Data::LbpFeature>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Detection::Data::LbpFeature, std::allocator<Simd::Detection::Data::LbpFeature>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Simd::Detection::HidBase" = type { %"struct.Simd::Deletable", i32, %"struct.Simd::Point", i8, i8, i8, i8, i32 }
%"struct.Simd::Detection::HidHaarCascade" = type { %"struct.Simd::Detection::HidBase", %"class.std::vector.41", %"class.std::vector.46", %"class.std::vector.51", %"class.std::vector.14", %"class.std::vector.56", float, float, [4 x ptr], [4 x ptr], %"struct.Simd::View", %"struct.Simd::View", %"struct.Simd::View", %"struct.Simd::View", %"struct.Simd::View" }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<Simd::Detection::HidHaarNode, std::allocator<Simd::Detection::HidHaarNode>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Detection::HidHaarNode, std::allocator<Simd::Detection::HidHaarNode>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Detection::HidHaarNode, std::allocator<Simd::Detection::HidHaarNode>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Detection::HidHaarNode, std::allocator<Simd::Detection::HidHaarNode>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.46" = type { %"struct.std::_Vector_base.47" }
%"struct.std::_Vector_base.47" = type { %"struct.std::_Vector_base<Simd::Detection::HidHaarCascade::Tree, std::allocator<Simd::Detection::HidHaarCascade::Tree>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Detection::HidHaarCascade::Tree, std::allocator<Simd::Detection::HidHaarCascade::Tree>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Detection::HidHaarCascade::Tree, std::allocator<Simd::Detection::HidHaarCascade::Tree>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Detection::HidHaarCascade::Tree, std::allocator<Simd::Detection::HidHaarCascade::Tree>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<Simd::Detection::HidHaarStage, std::allocator<Simd::Detection::HidHaarStage>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Detection::HidHaarStage, std::allocator<Simd::Detection::HidHaarStage>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Detection::HidHaarStage, std::allocator<Simd::Detection::HidHaarStage>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Detection::HidHaarStage, std::allocator<Simd::Detection::HidHaarStage>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = type { %"struct.std::_Vector_base<Simd::Detection::HidHaarFeature, std::allocator<Simd::Detection::HidHaarFeature>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Detection::HidHaarFeature, std::allocator<Simd::Detection::HidHaarFeature>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Detection::HidHaarFeature, std::allocator<Simd::Detection::HidHaarFeature>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Detection::HidHaarFeature, std::allocator<Simd::Detection::HidHaarFeature>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Simd::View" = type <{ i64, i64, i64, i32, [4 x i8], ptr, i8, [7 x i8] }>

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZTISt13runtime_error = external constant ptr
@.str.39 = external hidden unnamed_addr constant [53 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4Simd4Base13CreateHidHaarERKNS_9Detection4DataE(ptr noundef nonnull align 8 dereferenceable(208)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4Simd4Base8InitHaarERKNS_9Detection4DataERKNS_4ViewINS_9AllocatorEEES9_S9_b(ptr noundef nonnull align 8 dereferenceable(208) %0, ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull align 8 dereferenceable(41) %2, ptr noundef nonnull align 8 dereferenceable(41) %3, i1 noundef zeroext %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca i1, align 1
  %17 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %18 = zext i1 %4 to i8
  store i8 %18, ptr %10, align 1, !tbaa !9
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.Simd::Detection::Data", ptr %19, i32 0, i32 1
  %21 = load i8, ptr %20, align 8, !tbaa !11, !range !46, !noundef !47
  %22 = trunc i8 %21 to i1
  br i1 %22, label %63, label %23

23:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 392, ptr %11) #8
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %11)
  %24 = getelementptr inbounds i8, ptr %11, i64 16
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef @.str.39)
          to label %26 unwind label %37

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef nonnull align 8 dereferenceable(128) %11)
          to label %27 unwind label %41

27:                                               ; preds = %26
  %28 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef %28)
          to label %30 unwind label %45

30:                                               ; preds = %27
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %32 unwind label %45

32:                                               ; preds = %30
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  store i1 true, ptr %16, align 1
  %33 = call ptr @__cxa_allocate_exception(i64 16) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef nonnull align 8 dereferenceable(128) %11)
          to label %34 unwind label %50

34:                                               ; preds = %32
  %35 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef %35)
          to label %36 unwind label %54

36:                                               ; preds = %34
  store i1 false, ptr %16, align 1
  invoke void @__cxa_throw(ptr %33, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %108 unwind label %54

37:                                               ; preds = %23
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %12, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %13, align 4
  br label %62

41:                                               ; preds = %26
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %12, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %13, align 4
  br label %49

45:                                               ; preds = %30, %27
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %12, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  br label %49

49:                                               ; preds = %45, %41
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %62

50:                                               ; preds = %32
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %12, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %13, align 4
  br label %58

54:                                               ; preds = %36, %34
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  br label %58

58:                                               ; preds = %54, %50
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  %59 = load i1, ptr %16, align 1
  br i1 %59, label %60, label %61

60:                                               ; preds = %58
  call void @__cxa_free_exception(ptr %33) #8
  br label %61

61:                                               ; preds = %60, %58
  br label %62

62:                                               ; preds = %61, %49, %37
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %11) #8
  call void @llvm.lifetime.end.p0(i64 392, ptr %11) #8
  br label %103

63:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = call noundef ptr @_ZN4Simd4Base13CreateHidHaarERKNS_9Detection4DataE(ptr noundef nonnull align 8 dereferenceable(208) %64)
  store ptr %65, ptr %17, align 8, !tbaa !5
  %66 = load ptr, ptr %17, align 8, !tbaa !5
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN4Simd4BaseL8InitBaseEPNS_9Detection14HidHaarCascadeERKNS_4ViewINS_9AllocatorEEES8_S8_(ptr noundef %66, ptr noundef nonnull align 8 dereferenceable(41) %67, ptr noundef nonnull align 8 dereferenceable(41) %68, ptr noundef nonnull align 8 dereferenceable(41) %69)
  %70 = load i8, ptr %10, align 1, !tbaa !9, !range !46, !noundef !47
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %99

72:                                               ; preds = %63
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.Simd::Detection::HidBase", ptr %73, i32 0, i32 4
  store i8 1, ptr %74, align 1, !tbaa !48
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.Simd::Detection::HidHaarCascade", ptr %75, i32 0, i32 13
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.Simd::View", ptr %77, i32 0, i32 0
  %79 = load i64, ptr %78, align 8, !tbaa !50
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.Simd::View", ptr %80, i32 0, i32 1
  %82 = load i64, ptr %81, align 8, !tbaa !53
  %83 = call noundef i64 @_ZN4Simd4ViewINS_9AllocatorEE9PixelSizeENS2_6FormatE(i32 noundef 6)
  call void @_ZN4Simd4ViewINS_9AllocatorEE8RecreateEmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %76, i64 noundef %79, i64 noundef %82, i32 noundef 6, ptr noundef null, i64 noundef %83)
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.Simd::Detection::HidBase", ptr %84, i32 0, i32 5
  %86 = load i8, ptr %85, align 2, !tbaa !54, !range !46, !noundef !47
  %87 = trunc i8 %86 to i1
  br i1 %87, label %88, label %98

88:                                               ; preds = %72
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.Simd::Detection::HidHaarCascade", ptr %89, i32 0, i32 14
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.Simd::View", ptr %91, i32 0, i32 0
  %93 = load i64, ptr %92, align 8, !tbaa !50
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.Simd::View", ptr %94, i32 0, i32 1
  %96 = load i64, ptr %95, align 8, !tbaa !53
  %97 = call noundef i64 @_ZN4Simd4ViewINS_9AllocatorEE9PixelSizeENS2_6FormatE(i32 noundef 6)
  call void @_ZN4Simd4ViewINS_9AllocatorEE8RecreateEmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %90, i64 noundef %93, i64 noundef %96, i32 noundef 6, ptr noundef null, i64 noundef %97)
  br label %98

98:                                               ; preds = %88, %72
  br label %99

99:                                               ; preds = %98, %63
  %100 = load ptr, ptr %17, align 8, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4Simd4Base17UpdateFeaturePtrsIjEEvPNS_9Detection14HidHaarCascadeERKNS2_4DataE(ptr noundef %100, ptr noundef nonnull align 8 dereferenceable(208) %101)
  %102 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  ret ptr %102

103:                                              ; preds = %62
  %104 = load ptr, ptr %12, align 8
  %105 = load i32, ptr %13, align 4
  %106 = insertvalue { ptr, i32 } poison, ptr %104, 0
  %107 = insertvalue { ptr, i32 } %106, i32 %105, 1
  resume { ptr, i32 } %107

108:                                              ; preds = %36
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4Simd4BaseL8InitBaseEPNS_9Detection14HidHaarCascadeERKNS_4ViewINS_9AllocatorEEES8_S8_(ptr noundef, ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41)) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4ViewINS_9AllocatorEE8RecreateEmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef, i64 noundef, i32 noundef, ptr noundef, i64 noundef) #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd4ViewINS_9AllocatorEE9PixelSizeENS2_6FormatE(i32 noundef) #7 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4Base17UpdateFeaturePtrsIjEEvPNS_9Detection14HidHaarCascadeERKNS2_4DataE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(208)) #6

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

!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 = !{!"bool", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN4Simd9Detection4DataE", !13, i64 0, !10, i64 8, !10, i64 9, !10, i64 10, !14, i64 12, !15, i64 16, !14, i64 20, !16, i64 24, !18, i64 40, !22, i64 64, !26, i64 88, !30, i64 112, !34, i64 136, !38, i64 160, !42, i64 184}
!13 = !{!"_ZTSN4Simd9DeletableE"}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTS22SimdDetectionInfoFlags", !7, i64 0}
!16 = !{!"_ZTSN4Simd5PointIlEE", !17, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data5StageESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data5StageESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data5StageESaIS3_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data5StageESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data5DTreeESaIS3_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data5DTreeESaIS3_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data5DTreeESaIS3_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data5DTreeESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data9DTreeNodeESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data9DTreeNodeESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data9DTreeNodeESaIS3_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data9DTreeNodeESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIfSaIfEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorIiSaIiEE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data11HaarFeatureESaIS3_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data11HaarFeatureESaIS3_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data11HaarFeatureESaIS3_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data11HaarFeatureESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data10LbpFeatureESaIS3_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data10LbpFeatureESaIS3_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data10LbpFeatureESaIS3_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data10LbpFeatureESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!49, !10, i64 33}
!49 = !{!"_ZTSN4Simd9Detection7HidBaseE", !13, i64 0, !15, i64 8, !16, i64 16, !10, i64 32, !10, i64 33, !10, i64 34, !10, i64 35, !14, i64 36}
!50 = !{!51, !17, i64 0}
!51 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEEE", !17, i64 0, !17, i64 8, !17, i64 16, !52, i64 24, !6, i64 32, !10, i64 40}
!52 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEE6FormatE", !7, i64 0}
!53 = !{!51, !17, i64 8}
!54 = !{!49, !10, i64 34}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZTISt13runtime_error = external constant ptr
@.str.39 = external hidden unnamed_addr constant [53 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4Simd4Base13CreateHidHaarERKNS_9Detection4DataE(ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4Simd4Base8InitHaarERKNS_9Detection4DataERKNS_4ViewINS_9AllocatorEEES9_S9_b(ptr noundef nonnull align 8 dereferenceable(208) %0, ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull align 8 dereferenceable(41) %2, ptr noundef nonnull align 8 dereferenceable(41) %3, i1 noundef zeroext %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i8, ptr %9, align 8, !tbaa !5, !range !44, !noundef !45
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %39, label %12

12:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %6) #8
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %6)
  %13 = getelementptr inbounds i8, ptr %6, i64 16
  %14 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str.39)
          to label %15 unwind label %27

15:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(128) %6)
          to label %16 unwind label %29

16:                                               ; preds = %15
  %17 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  %18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef %17)
          to label %19 unwind label %31

19:                                               ; preds = %16
  %20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %21 unwind label %31

21:                                               ; preds = %19
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  %22 = call ptr @__cxa_allocate_exception(i64 16) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) %6)
          to label %23 unwind label %.thread

23:                                               ; preds = %21
  %24 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef %24)
          to label %26 unwind label %.thread32

.thread32:                                        ; preds = %23
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %37

26:                                               ; preds = %23
  invoke void @__cxa_throw(ptr nonnull %22, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #9
          to label %58 unwind label %35

27:                                               ; preds = %12
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %38

29:                                               ; preds = %15
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %33

31:                                               ; preds = %19, %16
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %33

33:                                               ; preds = %31, %29
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %38

.thread:                                          ; preds = %21
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %37

35:                                               ; preds = %26
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %38

37:                                               ; preds = %.thread32, %.thread
  %.pn2631 = phi { ptr, i32 } [ %34, %.thread ], [ %25, %.thread32 ]
  call void @__cxa_free_exception(ptr %22) #8
  br label %38

38:                                               ; preds = %35, %37, %33, %27
  %.pn26.pn = phi { ptr, i32 } [ %.pn2631, %37 ], [ %36, %35 ], [ %.pn, %33 ], [ %28, %27 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %6) #8
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn26.pn

39:                                               ; preds = %5
  %40 = tail call noundef ptr @_ZN4Simd4Base13CreateHidHaarERKNS_9Detection4DataE(ptr noundef nonnull align 8 dereferenceable(208) %0)
  tail call void @_ZN4Simd4BaseL8InitBaseEPNS_9Detection14HidHaarCascadeERKNS_4ViewINS_9AllocatorEEES8_S8_(ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(41) %1, ptr noundef nonnull align 8 dereferenceable(41) %2, ptr noundef nonnull align 8 dereferenceable(41) %3)
  br i1 %4, label %41, label %57

41:                                               ; preds = %39
  %42 = getelementptr inbounds i8, ptr %40, i64 33
  store i8 1, ptr %42, align 1, !tbaa !46
  %43 = getelementptr inbounds i8, ptr %40, i64 376
  %44 = load i64, ptr %1, align 8, !tbaa !48
  %45 = getelementptr inbounds i8, ptr %1, i64 8
  %46 = load i64, ptr %45, align 8, !tbaa !51
  %47 = tail call noundef i64 @_ZN4Simd4ViewINS_9AllocatorEE9PixelSizeENS2_6FormatE(i32 noundef 6)
  tail call void @_ZN4Simd4ViewINS_9AllocatorEE8RecreateEmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %43, i64 noundef %44, i64 noundef %46, i32 noundef 6, ptr noundef null, i64 noundef %47)
  %48 = getelementptr inbounds i8, ptr %40, i64 34
  %49 = load i8, ptr %48, align 2, !tbaa !52, !range !44, !noundef !45
  %50 = trunc nuw i8 %49 to i1
  br i1 %50, label %51, label %57

51:                                               ; preds = %41
  %52 = getelementptr inbounds i8, ptr %40, i64 424
  %53 = load i64, ptr %3, align 8, !tbaa !48
  %54 = getelementptr inbounds i8, ptr %3, i64 8
  %55 = load i64, ptr %54, align 8, !tbaa !51
  %56 = tail call noundef i64 @_ZN4Simd4ViewINS_9AllocatorEE9PixelSizeENS2_6FormatE(i32 noundef 6)
  tail call void @_ZN4Simd4ViewINS_9AllocatorEE8RecreateEmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41) %52, i64 noundef %53, i64 noundef %55, i32 noundef 6, ptr noundef null, i64 noundef %56)
  br label %57

57:                                               ; preds = %41, %51, %39
  tail call void @_ZN4Simd4Base17UpdateFeaturePtrsIjEEvPNS_9Detection14HidHaarCascadeERKNS2_4DataE(ptr noundef %40, ptr noundef nonnull align 8 dereferenceable(208) %0)
  ret ptr %40

58:                                               ; preds = %26
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4Simd4BaseL8InitBaseEPNS_9Detection14HidHaarCascadeERKNS_4ViewINS_9AllocatorEEES8_S8_(ptr noundef, ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4ViewINS_9AllocatorEE8RecreateEmmNS2_6FormatEPvm(ptr noundef nonnull align 8 dereferenceable(41), i64 noundef, i64 noundef, i32 noundef, ptr noundef, i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd4ViewINS_9AllocatorEE9PixelSizeENS2_6FormatE(i32 noundef) local_unnamed_addr #7 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4Base17UpdateFeaturePtrsIjEEvPNS_9Detection14HidHaarCascadeERKNS2_4DataE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #6

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

!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, !8, i64 8}
!6 = !{!"_ZTSN4Simd9Detection4DataE", !7, i64 0, !8, i64 8, !8, i64 9, !8, i64 10, !11, i64 12, !12, i64 16, !11, i64 20, !13, i64 24, !15, i64 40, !20, i64 64, !24, i64 88, !28, i64 112, !32, i64 136, !36, i64 160, !40, i64 184}
!7 = !{!"_ZTSN4Simd9DeletableE"}
!8 = !{!"bool", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTS22SimdDetectionInfoFlags", !9, i64 0}
!13 = !{!"_ZTSN4Simd5PointIlEE", !14, i64 0, !14, i64 8}
!14 = !{!"long", !9, i64 0}
!15 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data5StageESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data5StageESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data5StageESaIS3_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data5StageESaIS3_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !9, i64 0}
!20 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data5DTreeESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data5DTreeESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data5DTreeESaIS3_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data5DTreeESaIS3_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!24 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data9DTreeNodeESaIS3_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data9DTreeNodeESaIS3_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data9DTreeNodeESaIS3_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data9DTreeNodeESaIS3_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!28 = !{!"_ZTSSt6vectorIfSaIfEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!32 = !{!"_ZTSSt6vectorIiSaIiEE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!36 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data11HaarFeatureESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data11HaarFeatureESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data11HaarFeatureESaIS3_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data11HaarFeatureESaIS3_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!40 = !{!"_ZTSSt6vectorIN4Simd9Detection4Data10LbpFeatureESaIS3_EE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIN4Simd9Detection4Data10LbpFeatureESaIS3_EE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data10LbpFeatureESaIS3_EE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN4Simd9Detection4Data10LbpFeatureESaIS3_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = !{!47, !8, i64 33}
!47 = !{!"_ZTSN4Simd9Detection7HidBaseE", !7, i64 0, !12, i64 8, !13, i64 16, !8, i64 32, !8, i64 33, !8, i64 34, !8, i64 35, !11, i64 36}
!48 = !{!49, !14, i64 0}
!49 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEEE", !14, i64 0, !14, i64 8, !14, i64 16, !50, i64 24, !19, i64 32, !8, i64 40}
!50 = !{!"_ZTSN4Simd4ViewINS_9AllocatorEE6FormatE", !9, i64 0}
!51 = !{!49, !14, i64 8}
!52 = !{!47, !8, i64 34}


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