; LLVM IR from ArefMq/SoccerBallDetection :: src/balldetector.ll (ZN7MVision12BallDetectorC2EP20DebugHelperInterface)

; 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.MVision::BallDetector" = type { %class.Debugable, %"class.MVision::Image", %"class.std::vector", %"class.std::vector.0", double, ptr, ptr, ptr, ptr, ptr }
%class.Debugable = type { ptr, ptr }
%"class.MVision::Image" = type { i32, i32, i32, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MVision::Ball, std::allocator<MVision::Ball>>::_Vector_impl" }
%"struct.std::_Vector_base<MVision::Ball, std::allocator<MVision::Ball>>::_Vector_impl" = type { %"struct.std::_Vector_base<MVision::Ball, std::allocator<MVision::Ball>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MVision::Ball, std::allocator<MVision::Ball>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl" }
%"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl" = type { %"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MVision::Vector2D, std::allocator<MVision::Vector2D>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@_ZTVN7MVision12BallDetectorE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MVision12BallDetectorC2EP20DebugHelperInterface(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  call void @_ZN9DebugableC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef @.str)
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN7MVision12BallDetectorE, i32 0, i32 0, i32 2), ptr %7, align 8, !tbaa !9
  %8 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 1
  invoke void @_ZN7MVision5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %9 unwind label %42

9:                                                ; preds = %2
  %10 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 2
  call void @_ZNSt6vectorIN7MVision4BallESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %11 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 3
  call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %12 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 4
  store double -1.000000e+00, ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 5
  %14 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #7
          to label %15 unwind label %46

15:                                               ; preds = %9
  %16 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 1
  invoke void @_ZN7MVision13ColorAnalyzerC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %17 unwind label %50

17:                                               ; preds = %15
  store ptr %14, ptr %13, align 8, !tbaa !25
  %18 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 6
  %19 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 128) #7
          to label %20 unwind label %46

20:                                               ; preds = %17
  %21 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 1
  invoke void @_ZN7MVision9EdgeImageC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(128) %19, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %22 unwind label %54

22:                                               ; preds = %20
  store ptr %19, ptr %18, align 8, !tbaa !26
  %23 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 7
  %24 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #7
          to label %25 unwind label %46

25:                                               ; preds = %22
  %26 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 6
  %27 = load ptr, ptr %26, align 8, !tbaa !26
  invoke void @_ZN7MVision4FRHTC1ERNS_9EdgeImageE(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(128) %27)
          to label %28 unwind label %58

28:                                               ; preds = %25
  store ptr %24, ptr %23, align 8, !tbaa !27
  %29 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 8
  %30 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #7
          to label %31 unwind label %46

31:                                               ; preds = %28
  invoke void @_ZN7MVision18KinematicsProviderC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %32 unwind label %62

32:                                               ; preds = %31
  store ptr %30, ptr %29, align 8, !tbaa !28
  %33 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 9
  %34 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #7
          to label %35 unwind label %46

35:                                               ; preds = %32
  invoke void @_ZN7MVision17PatternRecognizerC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %36 unwind label %66

36:                                               ; preds = %35
  store ptr %34, ptr %33, align 8, !tbaa !29
  %37 = getelementptr inbounds %"class.MVision::BallDetector", ptr %7, i32 0, i32 9
  %38 = load ptr, ptr %37, align 8, !tbaa !29
  invoke void @_ZN7MVision17PatternRecognizer4loadEv(ptr noundef nonnull align 8 dereferenceable(24) %38)
          to label %39 unwind label %46

39:                                               ; preds = %36
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN9Debugable14setDebugHelperEP20DebugHelperInterface(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %40)
          to label %41 unwind label %46

41:                                               ; preds = %39
  ret void

42:                                               ; preds = %2
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %5, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %6, align 4
  br label %71

46:                                               ; preds = %39, %36, %32, %28, %22, %17, %9
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %5, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %6, align 4
  br label %70

50:                                               ; preds = %15
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %5, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %14, i64 noundef 56) #8
  br label %70

54:                                               ; preds = %20
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %5, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %19, i64 noundef 128) #8
  br label %70

58:                                               ; preds = %25
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %5, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %24, i64 noundef 48) #8
  br label %70

62:                                               ; preds = %31
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %5, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %30, i64 noundef 16) #8
  br label %70

66:                                               ; preds = %35
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %5, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %34, i64 noundef 24) #8
  br label %70

70:                                               ; preds = %66, %62, %58, %54, %50, %46
  call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @_ZNSt6vectorIN7MVision4BallESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @_ZN7MVision5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %71

71:                                               ; preds = %70, %42
  call void @_ZN9DebugableD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr %5, align 8
  %74 = load i32, ptr %6, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

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

declare void @_ZN7MVision5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

declare void @_ZN7MVision13ColorAnalyzerC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

declare void @_ZN7MVision9EdgeImageC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @_ZN7MVision4FRHTC1ERNS_9EdgeImageE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2

declare void @_ZN7MVision18KinematicsProviderC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @_ZN7MVision17PatternRecognizerC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @_ZN7MVision17PatternRecognizer4loadEv(ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9Debugable14setDebugHelperEP20DebugHelperInterface(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #1 align 2

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { nobuiltin allocsize(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 = { nobuiltin 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 #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 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !24, i64 88}
!12 = !{!"_ZTSN7MVision12BallDetectorE", !13, i64 0, !14, i64 16, !16, i64 40, !20, i64 64, !24, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!13 = !{!"_ZTS9Debugable", !6, i64 8}
!14 = !{!"_ZTSN7MVision5ImageE", !15, i64 0, !15, i64 4, !15, i64 8, !6, i64 16}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIN7MVision4BallESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN7MVision4BallESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7MVision4BallESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7MVision4BallESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIN7MVision8Vector2DESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"double", !7, i64 0}
!25 = !{!12, !6, i64 96}
!26 = !{!12, !6, i64 104}
!27 = !{!12, !6, i64 112}
!28 = !{!12, !6, i64 120}
!29 = !{!12, !6, i64 128}


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

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@_ZTVN7MVision12BallDetectorE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7MVision12BallDetectorC2EP20DebugHelperInterface(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN9DebugableC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull @.str)
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN7MVision12BallDetectorE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN7MVision5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %4 unwind label %29

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZNSt6vectorIN7MVision4BallESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %7 = getelementptr inbounds i8, ptr %0, i64 88
  store double -1.000000e+00, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 96
  %9 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #7
          to label %10 unwind label %31

10:                                               ; preds = %4
  invoke void @_ZN7MVision13ColorAnalyzerC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %11 unwind label %33

11:                                               ; preds = %10
  store ptr %9, ptr %8, align 8, !tbaa !24
  %12 = getelementptr inbounds i8, ptr %0, i64 104
  %13 = invoke noalias noundef nonnull dereferenceable(128) ptr @_Znwm(i64 noundef 128) #7
          to label %14 unwind label %31

14:                                               ; preds = %11
  invoke void @_ZN7MVision9EdgeImageC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %15 unwind label %35

15:                                               ; preds = %14
  store ptr %13, ptr %12, align 8, !tbaa !25
  %16 = getelementptr inbounds i8, ptr %0, i64 112
  %17 = invoke noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #7
          to label %18 unwind label %31

18:                                               ; preds = %15
  invoke void @_ZN7MVision4FRHTC1ERNS_9EdgeImageE(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 8 dereferenceable(128) %13)
          to label %19 unwind label %37

19:                                               ; preds = %18
  store ptr %17, ptr %16, align 8, !tbaa !26
  %20 = getelementptr inbounds i8, ptr %0, i64 120
  %21 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #7
          to label %22 unwind label %31

22:                                               ; preds = %19
  invoke void @_ZN7MVision18KinematicsProviderC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %23 unwind label %39

23:                                               ; preds = %22
  store ptr %21, ptr %20, align 8, !tbaa !27
  %24 = getelementptr inbounds i8, ptr %0, i64 128
  %25 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #7
          to label %26 unwind label %31

26:                                               ; preds = %23
  invoke void @_ZN7MVision17PatternRecognizerC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %27 unwind label %41

27:                                               ; preds = %26
  store ptr %25, ptr %24, align 8, !tbaa !28
  invoke void @_ZN7MVision17PatternRecognizer4loadEv(ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %28 unwind label %31

28:                                               ; preds = %27
  tail call void @_ZN9Debugable14setDebugHelperEP20DebugHelperInterface(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1)
  ret void

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

31:                                               ; preds = %27, %23, %19, %15, %11, %4
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %43

33:                                               ; preds = %10
  %34 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 56) #8
  br label %43

35:                                               ; preds = %14
  %36 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %13, i64 noundef 128) #8
  br label %43

37:                                               ; preds = %18
  %38 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %17, i64 noundef 48) #8
  br label %43

39:                                               ; preds = %22
  %40 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %21, i64 noundef 16) #8
  br label %43

41:                                               ; preds = %26
  %42 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %25, i64 noundef 24) #8
  br label %43

43:                                               ; preds = %41, %39, %37, %35, %33, %31
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %42, %41 ], [ %40, %39 ], [ %38, %37 ], [ %36, %35 ], [ %34, %33 ]
  tail call void @_ZNSt6vectorIN7MVision8Vector2DESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  tail call void @_ZNSt6vectorIN7MVision4BallESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  tail call void @_ZN7MVision5ImageD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %44

44:                                               ; preds = %43, %29
  %.pn.pn = phi { ptr, i32 } [ %.pn, %43 ], [ %30, %29 ]
  tail call void @_ZN9DebugableD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %0) #6
  resume { ptr, i32 } %.pn.pn
}

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

declare void @_ZN7MVision5ImageC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

declare void @_ZN7MVision13ColorAnalyzerC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @_ZN7MVision9EdgeImageC1ERKNS_5ImageE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @_ZN7MVision4FRHTC1ERNS_9EdgeImageE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2

declare void @_ZN7MVision18KinematicsProviderC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @_ZN7MVision17PatternRecognizerC1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

declare void @_ZN7MVision17PatternRecognizer4loadEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9Debugable14setDebugHelperEP20DebugHelperInterface(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #1 align 2

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { nobuiltin allocsize(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 = { nobuiltin 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 #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 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !23, i64 88}
!9 = !{!"_ZTSN7MVision12BallDetectorE", !10, i64 0, !13, i64 16, !15, i64 40, !19, i64 64, !23, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128}
!10 = !{!"_ZTS9Debugable", !11, i64 8}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSN7MVision5ImageE", !14, i64 0, !14, i64 4, !14, i64 8, !11, i64 16}
!14 = !{!"int", !12, i64 0}
!15 = !{!"_ZTSSt6vectorIN7MVision4BallESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN7MVision4BallESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7MVision4BallESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7MVision4BallESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!19 = !{!"_ZTSSt6vectorIN7MVision8Vector2DESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7MVision8Vector2DESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!23 = !{!"double", !12, i64 0}
!24 = !{!9, !11, i64 96}
!25 = !{!9, !11, i64 104}
!26 = !{!9, !11, i64 112}
!27 = !{!9, !11, i64 120}
!28 = !{!9, !11, i64 128}


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