; LLVM IR from facebook/redex :: libredex (MonitorCount)

; 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.60" = type { %"struct.std::_Vector_base.61" }
%"struct.std::_Vector_base.61" = type { %"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.monitor_count::Analyzer" = type { %"class.ir_analyzer::BaseIRAnalyzer", ptr }
%"class.ir_analyzer::BaseIRAnalyzer" = type { %"class.sparta::MonotonicFixpointIterator" }
%"class.sparta::MonotonicFixpointIterator" = type { %"class.sparta::fp_impl::MonotonicFixpointIteratorBase", %"class.sparta::WeakPartialOrdering" }
%"class.sparta::fp_impl::MonotonicFixpointIteratorBase" = type { %"class.sparta::FixpointIterator", ptr, %"class.sparta::ConstantAbstractDomain", %"class.std::unordered_map", %"class.std::unordered_map" }
%"class.sparta::FixpointIterator" = type { ptr }
%"class.sparta::ConstantAbstractDomain" = type { %"class.sparta::acd_impl::ConstantAbstractValueRepr" }
%"class.sparta::acd_impl::ConstantAbstractValueRepr" = type { i32, i32 }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.sparta::WeakPartialOrdering" = type <{ %"class.std::vector.9", %"class.std::vector.14", %"class.std::unordered_map.19", i8, [7 x i8] }>
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<sparta::WpoNode<cfg::Block *>, std::allocator<sparta::WpoNode<cfg::Block *>>>::_Vector_impl" }
%"struct.std::_Vector_base<sparta::WpoNode<cfg::Block *>, std::allocator<sparta::WpoNode<cfg::Block *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<sparta::WpoNode<cfg::Block *>, std::allocator<sparta::WpoNode<cfg::Block *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sparta::WpoNode<cfg::Block *>, std::allocator<sparta::WpoNode<cfg::Block *>>>::_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<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map.19" = type { %"class.std::_Hashtable.20" }
%"class.std::_Hashtable.20" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13monitor_count8Analyzer24get_sketchy_instructionsEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.60") align 8, ptr noundef nonnull align 8 dereferenceable(256)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN13monitor_count26cannot_inline_sketchy_codeERKN3cfg16ControlFlowGraphES3_PK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::vector.60", align 8
  %9 = alloca %"class.monitor_count::Analyzer", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca %"class.std::vector.60", align 8
  %15 = alloca %"class.monitor_count::Analyzer", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call noundef zeroext i1 @_ZN12_GLOBAL__N_17has_tryERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160) %16)
  br i1 %17, label %18, label %21

18:                                               ; preds = %3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = call noundef zeroext i1 @_ZN12_GLOBAL__N_17has_tryERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160) %19)
  br i1 %20, label %22, label %21

21:                                               ; preds = %18, %3
  store i1 false, ptr %4, align 1
  br label %64

22:                                               ; preds = %18
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef zeroext i1 @_ZN12_GLOBAL__N_125has_try_without_catch_allERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160) %23)
  br i1 %24, label %25, label %45

25:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 256, ptr %9) #4
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN13monitor_count8AnalyzerC2ERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(256) %9, ptr noundef nonnull align 8 dereferenceable(160) %26)
  invoke void @_ZN13monitor_count8Analyzer24get_sketchy_instructionsEv(ptr dead_on_unwind writable sret(%"class.std::vector.60") align 8 %8, ptr noundef nonnull align 8 dereferenceable(256) %9)
          to label %27 unwind label %32

27:                                               ; preds = %25
  call void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(256) %9) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %9) #4
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_120contains_invoke_insnERKSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS3_EEPK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef %28)
          to label %30 unwind label %36

30:                                               ; preds = %27
  br i1 %29, label %31, label %40

31:                                               ; preds = %30
  store i1 true, ptr %4, align 1
  store i32 1, ptr %12, align 4
  br label %41

32:                                               ; preds = %25
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %10, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %11, align 4
  call void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(256) %9) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %9) #4
  br label %44

36:                                               ; preds = %27
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %10, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %11, align 4
  call void @_ZNSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %44

40:                                               ; preds = %30
  store i32 0, ptr %12, align 4
  br label %41

41:                                               ; preds = %40, %31
  call void @_ZNSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  %42 = load i32, ptr %12, align 4
  switch i32 %42, label %71 [
    i32 0, label %43
    i32 1, label %64
  ]

43:                                               ; preds = %41
  br label %45

44:                                               ; preds = %36, %32
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  br label %66

45:                                               ; preds = %43, %22
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 256, ptr %15) #4
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN13monitor_count8AnalyzerC2ERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(256) %15, ptr noundef nonnull align 8 dereferenceable(160) %46)
  invoke void @_ZN13monitor_count8Analyzer24get_sketchy_instructionsEv(ptr dead_on_unwind writable sret(%"class.std::vector.60") align 8 %14, ptr noundef nonnull align 8 dereferenceable(256) %15)
          to label %47 unwind label %58

47:                                               ; preds = %45
  %48 = call noundef zeroext i1 @_ZNKSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  %49 = xor i1 %48, true
  call void @_ZNSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(256) %15) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  %50 = zext i1 %49 to i8
  store i8 %50, ptr %13, align 1, !tbaa !9
  %51 = load i8, ptr %13, align 1, !tbaa !9, !range !11, !noundef !12
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %62

53:                                               ; preds = %47
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = call noundef zeroext i1 @_ZN12_GLOBAL__N_121is_invoke_insn_in_tryERKN3cfg16ControlFlowGraphEPK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160) %54, ptr noundef %55)
  br i1 %56, label %57, label %62

57:                                               ; preds = %53
  store i1 true, ptr %4, align 1
  store i32 1, ptr %12, align 4
  br label %63

58:                                               ; preds = %45
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %10, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %11, align 4
  call void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(256) %15) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  br label %66

62:                                               ; preds = %53, %47
  store i1 false, ptr %4, align 1
  store i32 1, ptr %12, align 4
  br label %63

63:                                               ; preds = %62, %57
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  br label %64

64:                                               ; preds = %63, %41, %21
  %65 = load i1, ptr %4, align 1
  ret i1 %65

66:                                               ; preds = %58, %44
  %67 = load ptr, ptr %10, align 8
  %68 = load i32, ptr %11, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70

71:                                               ; preds = %41
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_17has_tryERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160)) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_125has_try_without_catch_allERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13monitor_count8AnalyzerC2ERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_120contains_invoke_insnERKSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS3_EEPK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_121is_invoke_insn_in_tryERKN3cfg16ControlFlowGraphEPK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) #1

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint 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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; 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.60" = type { %"struct.std::_Vector_base.61" }
%"struct.std::_Vector_base.61" = type { %"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl" }
%"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl" = type { %"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<cfg::InstructionIteratorImpl<false>, std::allocator<cfg::InstructionIteratorImpl<false>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.monitor_count::Analyzer" = type { %"class.ir_analyzer::BaseIRAnalyzer", ptr }
%"class.ir_analyzer::BaseIRAnalyzer" = type { %"class.sparta::MonotonicFixpointIterator" }
%"class.sparta::MonotonicFixpointIterator" = type { %"class.sparta::fp_impl::MonotonicFixpointIteratorBase", %"class.sparta::WeakPartialOrdering" }
%"class.sparta::fp_impl::MonotonicFixpointIteratorBase" = type { %"class.sparta::FixpointIterator", ptr, %"class.sparta::ConstantAbstractDomain", %"class.std::unordered_map", %"class.std::unordered_map" }
%"class.sparta::FixpointIterator" = type { ptr }
%"class.sparta::ConstantAbstractDomain" = type { %"class.sparta::acd_impl::ConstantAbstractValueRepr" }
%"class.sparta::acd_impl::ConstantAbstractValueRepr" = type { i32, i32 }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.sparta::WeakPartialOrdering" = type <{ %"class.std::vector.9", %"class.std::vector.14", %"class.std::unordered_map.19", i8, [7 x i8] }>
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<sparta::WpoNode<cfg::Block *>, std::allocator<sparta::WpoNode<cfg::Block *>>>::_Vector_impl" }
%"struct.std::_Vector_base<sparta::WpoNode<cfg::Block *>, std::allocator<sparta::WpoNode<cfg::Block *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<sparta::WpoNode<cfg::Block *>, std::allocator<sparta::WpoNode<cfg::Block *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sparta::WpoNode<cfg::Block *>, std::allocator<sparta::WpoNode<cfg::Block *>>>::_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<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map.19" = type { %"class.std::_Hashtable.20" }
%"class.std::_Hashtable.20" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13monitor_count8Analyzer24get_sketchy_instructionsEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector.60") align 8, ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN13monitor_count26cannot_inline_sketchy_codeERKN3cfg16ControlFlowGraphES3_PK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 8 dereferenceable(160) %1, ptr noundef %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.60", align 8
  %5 = alloca %"class.monitor_count::Analyzer", align 8
  %6 = alloca %"class.std::vector.60", align 8
  %7 = alloca %"class.monitor_count::Analyzer", align 8
  %8 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_17has_tryERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160) %1)
  br i1 %8, label %9, label %30

9:                                                ; preds = %3
  %10 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_17has_tryERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160) %0)
  br i1 %10, label %11, label %30

11:                                               ; preds = %9
  %12 = tail call noundef zeroext i1 @_ZN12_GLOBAL__N_125has_try_without_catch_allERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160) %1)
  br i1 %12, label %13, label %22

13:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #4
  call void @_ZN13monitor_count8AnalyzerC2ERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(256) %5, ptr noundef nonnull align 8 dereferenceable(160) %0)
  invoke void @_ZN13monitor_count8Analyzer24get_sketchy_instructionsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.60") align 8 %4, ptr noundef nonnull align 8 dereferenceable(256) %5)
          to label %14 unwind label %16

14:                                               ; preds = %13
  call void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #4
  %15 = invoke noundef zeroext i1 @_ZN12_GLOBAL__N_120contains_invoke_insnERKSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS3_EEPK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef %2)
          to label %20 unwind label %18

16:                                               ; preds = %13
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(256) %5) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #4
  br label %21

18:                                               ; preds = %14
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %21

20:                                               ; preds = %14
  call void @_ZNSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  br i1 %15, label %30, label %22

21:                                               ; preds = %18, %16
  %.pn = phi { ptr, i32 } [ %19, %18 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  br label %31

22:                                               ; preds = %20, %11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #4
  call void @_ZN13monitor_count8AnalyzerC2ERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(256) %7, ptr noundef nonnull align 8 dereferenceable(160) %1)
  invoke void @_ZN13monitor_count8Analyzer24get_sketchy_instructionsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.60") align 8 %6, ptr noundef nonnull align 8 dereferenceable(256) %7)
          to label %23 unwind label %27

23:                                               ; preds = %22
  %24 = call noundef zeroext i1 @_ZNKSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @_ZNSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br i1 %24, label %29, label %25

25:                                               ; preds = %23
  %26 = call noundef zeroext i1 @_ZN12_GLOBAL__N_121is_invoke_insn_in_tryERKN3cfg16ControlFlowGraphEPK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef %2)
  br i1 %26, label %30, label %29

27:                                               ; preds = %22
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(256) %7) #4
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  br label %31

29:                                               ; preds = %25, %23
  br label %30

30:                                               ; preds = %29, %25, %20, %3, %9
  %.2 = phi i1 [ true, %20 ], [ false, %9 ], [ false, %3 ], [ false, %29 ], [ true, %25 ]
  ret i1 %.2

31:                                               ; preds = %27, %21
  %.pn18 = phi { ptr, i32 } [ %28, %27 ], [ %.pn, %21 ]
  resume { ptr, i32 } %.pn18
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_17has_tryERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_125has_try_without_catch_allERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13monitor_count8AnalyzerC2ERKN3cfg16ControlFlowGraphE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6sparta25MonotonicFixpointIteratorIN3cfg14GraphInterfaceENS_22ConstantAbstractDomainIjEESt4hashIPNS1_5BlockEEED2Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_120contains_invoke_insnERKSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS3_EEPK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN12_GLOBAL__N_121is_invoke_insn_in_tryERKN3cfg16ControlFlowGraphEPK13IRInstruction(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef) local_unnamed_addr #1

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint 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 = { 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)"}


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