; LLVM IR from facebook/redex :: opt/builder_pattern (BuilderAnalysis)

; 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.builder_pattern::BuilderAnalysis" = type <{ %"class.std::unique_ptr", %class.UnorderedMap, %class.UnorderedSet, ptr, ptr, %"class.std::unique_ptr.21", %class.UnorderedMap.29, ptr, i64, i64, i8, [7 x i8] }>
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"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.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.8" }
%"class.std::_Hashtable.8" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unique_ptr.21" = type { %"struct.std::__uniq_ptr_data.22" }
%"struct.std::__uniq_ptr_data.22" = type { %"class.std::__uniq_ptr_impl.23" }
%"class.std::__uniq_ptr_impl.23" = type { %"class.std::tuple.24" }
%"class.std::tuple.24" = type { %"struct.std::_Tuple_impl.25" }
%"struct.std::_Tuple_impl.25" = type { %"struct.std::_Head_base.28" }
%"struct.std::_Head_base.28" = type { ptr }
%class.UnorderedMap.29 = type { %"class.std::unordered_map.31" }
%"class.std::unordered_map.31" = type { %"class.std::_Hashtable.32" }
%"class.std::_Hashtable.32" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZN15builder_pattern15BuilderAnalysis12run_analysisEv = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15builder_pattern15BuilderAnalysis12run_analysisEv(ptr noundef nonnull align 8 dereferenceable(232) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %9 = getelementptr inbounds %"class.builder_pattern::BuilderAnalysis", ptr %8, i32 0, i32 7
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = call noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  store ptr %11, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %15, label %14

14:                                               ; preds = %1
  store i32 1, ptr %4, align 4
  br label %37

15:                                               ; preds = %1
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32) %16)
  br i1 %17, label %18, label %19

18:                                               ; preds = %15
  br label %21

19:                                               ; preds = %15
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef 221, ptr noundef @__PRETTY_FUNCTION__._ZN15builder_pattern15BuilderAnalysis12run_analysisEv, i32 noundef 2, ptr noundef @.str.9) #8
  unreachable

20:                                               ; No predecessors!
  br label %21

21:                                               ; preds = %20, %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZN6IRCode3cfgEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  store ptr %23, ptr %5, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %24)
  %25 = getelementptr inbounds %"class.builder_pattern::BuilderAnalysis", ptr %8, i32 0, i32 0
  %26 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 280) #9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.builder_pattern::BuilderAnalysis", ptr %8, i32 0, i32 3
  %29 = load ptr, ptr %28, align 8, !tbaa !37
  %30 = getelementptr inbounds %"class.builder_pattern::BuilderAnalysis", ptr %8, i32 0, i32 4
  %31 = load ptr, ptr %30, align 8, !tbaa !38
  %32 = getelementptr inbounds %"class.builder_pattern::BuilderAnalysis", ptr %8, i32 0, i32 10
  %33 = load i8, ptr %32, align 8, !tbaa !39, !range !40, !noundef !41
  %34 = trunc i8 %33 to i1
  invoke void @_ZN15builder_pattern4impl8AnalyzerC2ERKN3cfg16ControlFlowGraphERK12UnorderedSetIPK7DexTypeSt4hashIS9_ESt8equal_toIS9_EESG_b(ptr noundef nonnull align 8 dereferenceable(280) %26, ptr noundef nonnull align 8 dereferenceable(160) %27, ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull align 8 dereferenceable(56) %31, i1 noundef zeroext %34)
          to label %35 unwind label %40

35:                                               ; preds = %21
  call void @_ZNSt10unique_ptrIN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EE5resetEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %26) #7
  call void @_ZN15builder_pattern15BuilderAnalysis14populate_usageEv(ptr noundef nonnull align 8 dereferenceable(232) %8)
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3cfg16ControlFlowGraph24recompute_registers_sizeEv(ptr noundef nonnull align 8 dereferenceable(160) %36)
  call void @_ZN15builder_pattern15BuilderAnalysis12update_statsEv(ptr noundef nonnull align 8 dereferenceable(232) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  store i32 0, ptr %4, align 4
  br label %37

37:                                               ; preds = %35, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  %38 = load i32, ptr %4, align 4
  switch i32 %38, label %49 [
    i32 0, label %39
    i32 1, label %39
  ]

39:                                               ; preds = %37, %37
  ret void

40:                                               ; preds = %21
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %6, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %26, i64 noundef 280) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %44

44:                                               ; preds = %40
  %45 = load ptr, ptr %6, align 8
  %46 = load i32, ptr %7, align 4
  %47 = insertvalue { ptr, i32 } poison, ptr %45, 0
  %48 = insertvalue { ptr, i32 } %47, i32 %46, 1
  resume { ptr, i32 } %48

49:                                               ; preds = %37
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88)) #4 align 2

declare noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(160) ptr @_ZN6IRCode3cfgEv(ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

declare void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15builder_pattern4impl8AnalyzerC2ERKN3cfg16ControlFlowGraphERK12UnorderedSetIPK7DexTypeSt4hashIS9_ESt8equal_toIS9_EESG_b(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), i1 noundef zeroext) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15builder_pattern15BuilderAnalysis14populate_usageEv(ptr noundef nonnull align 8 dereferenceable(232)) #3 align 2

declare void @_ZN3cfg16ControlFlowGraph24recompute_registers_sizeEv(ptr noundef nonnull align 8 dereferenceable(160)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15builder_pattern15BuilderAnalysis12update_statsEv(ptr noundef nonnull align 8 dereferenceable(232)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #5 = { "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 = { noreturn "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 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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, !6, i64 200}
!10 = !{!"_ZTSN15builder_pattern15BuilderAnalysisE", !11, i64 0, !17, i64 8, !24, i64 64, !6, i64 120, !6, i64 128, !27, i64 136, !33, i64 144, !6, i64 200, !20, i64 208, !20, i64 216, !36, i64 224}
!11 = !{!"_ZTSSt10unique_ptrIN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_dataIN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_ELb1ELb1EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_implIN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt5tupleIJPN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EEE", !15, i64 0}
!15 = !{!"_ZTSSt11_Tuple_implILm0EJPN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_Head_baseILm0EPN15builder_pattern4impl8AnalyzerELb0EE", !6, i64 0}
!17 = !{!"_ZTS12UnorderedMapIPK13IRInstructionSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS6_EESt4hashIS2_ESt8equal_toIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIPK13IRInstructionSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS6_EESt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S8_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIPK13IRInstructionSt4pairIKS2_St6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS8_EEESaISB_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!22 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !23, i64 0, !20, i64 8}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTS12UnorderedSetIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt13unordered_setIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !26, i64 0}
!26 = !{!"_ZTSSt10_HashtableIPK13IRInstructionS2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!27 = !{!"_ZTSSt10unique_ptrIN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_dataIN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_ELb1ELb1EE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_implIN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt5tupleIJPN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_EEE", !31, i64 0}
!31 = !{!"_ZTSSt11_Tuple_implILm0EJPN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_EEE", !32, i64 0}
!32 = !{!"_ZTSSt10_Head_baseILm0EPN15builder_pattern4impl19InstructionToEnvMapELb0EE", !6, i64 0}
!33 = !{!"_ZTS12UnorderedMapIPK13IRInstructionPK7DexTypeSt4hashIS2_ESt8equal_toIS2_EE", !34, i64 0}
!34 = !{!"_ZTSSt13unordered_mapIPK13IRInstructionPK7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S5_EEE", !35, i64 0}
!35 = !{!"_ZTSSt10_HashtableIPK13IRInstructionSt4pairIKS2_PK7DexTypeESaIS8_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!36 = !{!"bool", !7, i64 0}
!37 = !{!10, !6, i64 120}
!38 = !{!10, !6, i64 128}
!39 = !{!10, !36, i64 224}
!40 = !{i8 0, i8 2}
!41 = !{}


; 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.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [88 x i8], align 1
@__PRETTY_FUNCTION__._ZN15builder_pattern15BuilderAnalysis12run_analysisEv = external hidden unnamed_addr constant [54 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15builder_pattern15BuilderAnalysis12run_analysisEv(ptr noundef nonnull align 8 dereferenceable(232) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 200
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = tail call noundef ptr @_ZN9DexMethod8get_codeEv(ptr noundef nonnull align 8 dereferenceable(88) %3)
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %19, label %5

5:                                                ; preds = %1
  %6 = tail call noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  br i1 %6, label %8, label %7

7:                                                ; preds = %5
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8, i32 noundef 221, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN15builder_pattern15BuilderAnalysis12run_analysisEv, i32 noundef 2, ptr noundef nonnull @.str.9) #6
  unreachable

8:                                                ; preds = %5
  %9 = tail call noundef nonnull align 8 dereferenceable(160) ptr @_ZN6IRCode3cfgEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  tail call void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160) %9)
  %10 = tail call noalias noundef nonnull dereferenceable(280) ptr @_Znwm(i64 noundef 280) #7
  %11 = getelementptr inbounds i8, ptr %0, i64 120
  %12 = load ptr, ptr %11, align 8, !tbaa !36
  %13 = getelementptr inbounds i8, ptr %0, i64 128
  %14 = load ptr, ptr %13, align 8, !tbaa !37
  %15 = getelementptr inbounds i8, ptr %0, i64 224
  %16 = load i8, ptr %15, align 8, !tbaa !38, !range !39, !noundef !40
  %17 = trunc nuw i8 %16 to i1
  invoke void @_ZN15builder_pattern4impl8AnalyzerC2ERKN3cfg16ControlFlowGraphERK12UnorderedSetIPK7DexTypeSt4hashIS9_ESt8equal_toIS9_EESG_b(ptr noundef nonnull align 8 dereferenceable(280) %10, ptr noundef nonnull align 8 dereferenceable(160) %9, ptr noundef nonnull align 8 dereferenceable(56) %12, ptr noundef nonnull align 8 dereferenceable(56) %14, i1 noundef zeroext %17)
          to label %18 unwind label %20

18:                                               ; preds = %8
  tail call void @_ZNSt10unique_ptrIN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EE5resetEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %10) #8
  tail call void @_ZN15builder_pattern15BuilderAnalysis14populate_usageEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  tail call void @_ZN3cfg16ControlFlowGraph24recompute_registers_sizeEv(ptr noundef nonnull align 8 dereferenceable(160) %9)
  tail call void @_ZN15builder_pattern15BuilderAnalysis12update_statsEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  br label %19

19:                                               ; preds = %1, %18
  ret void

20:                                               ; preds = %8
  %21 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 280) #9
  resume { ptr, i32 } %21
}

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

declare noundef zeroext i1 @_ZNK6IRCode18editable_cfg_builtEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: noreturn
declare void @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #5

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

declare void @_ZN3cfg16ControlFlowGraph20calculate_exit_blockEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15builder_pattern4impl8AnalyzerC2ERKN3cfg16ControlFlowGraphERK12UnorderedSetIPK7DexTypeSt4hashIS9_ESt8equal_toIS9_EESG_b(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56), i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15builder_pattern15BuilderAnalysis14populate_usageEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #2 align 2

declare void @_ZN3cfg16ControlFlowGraph24recompute_registers_sizeEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15builder_pattern15BuilderAnalysis12update_statsEv(ptr noundef nonnull align 8 dereferenceable(232)) local_unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { noreturn "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 = { noreturn }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { 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, !13, i64 200}
!6 = !{!"_ZTSN15builder_pattern15BuilderAnalysisE", !7, i64 0, !16, i64 8, !23, i64 64, !13, i64 120, !13, i64 128, !26, i64 136, !32, i64 144, !13, i64 200, !19, i64 208, !19, i64 216, !35, i64 224}
!7 = !{!"_ZTSSt10unique_ptrIN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EE", !8, i64 0}
!8 = !{!"_ZTSSt15__uniq_ptr_dataIN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_ELb1ELb1EE", !9, i64 0}
!9 = !{!"_ZTSSt15__uniq_ptr_implIN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EE", !10, i64 0}
!10 = !{!"_ZTSSt5tupleIJPN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EEE", !11, i64 0}
!11 = !{!"_ZTSSt11_Tuple_implILm0EJPN15builder_pattern4impl8AnalyzerESt14default_deleteIS2_EEE", !12, i64 0}
!12 = !{!"_ZTSSt10_Head_baseILm0EPN15builder_pattern4impl8AnalyzerELb0EE", !13, i64 0}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"_ZTS12UnorderedMapIPK13IRInstructionSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS6_EESt4hashIS2_ESt8equal_toIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt13unordered_mapIPK13IRInstructionSt6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS6_EESt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S8_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableIPK13IRInstructionSt4pairIKS2_St6vectorIN3cfg23InstructionIteratorImplILb0EEESaIS8_EEESaISB_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb0ELb0ELb1EEEE", !13, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !13, i64 48}
!19 = !{!"long", !14, i64 0}
!20 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !13, i64 0}
!21 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !22, i64 0, !19, i64 8}
!22 = !{!"float", !14, i64 0}
!23 = !{!"_ZTS12UnorderedSetIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt13unordered_setIPK13IRInstructionSt4hashIS2_ESt8equal_toIS2_ESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSSt10_HashtableIPK13IRInstructionS2_SaIS2_ENSt8__detail9_IdentityESt8equal_toIS2_ESt4hashIS2_ENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb1ELb1EEEE", !13, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !13, i64 48}
!26 = !{!"_ZTSSt10unique_ptrIN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt15__uniq_ptr_dataIN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_ELb1ELb1EE", !28, i64 0}
!28 = !{!"_ZTSSt15__uniq_ptr_implIN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt5tupleIJPN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_EEE", !30, i64 0}
!30 = !{!"_ZTSSt11_Tuple_implILm0EJPN15builder_pattern4impl19InstructionToEnvMapESt14default_deleteIS2_EEE", !31, i64 0}
!31 = !{!"_ZTSSt10_Head_baseILm0EPN15builder_pattern4impl19InstructionToEnvMapELb0EE", !13, i64 0}
!32 = !{!"_ZTS12UnorderedMapIPK13IRInstructionPK7DexTypeSt4hashIS2_ESt8equal_toIS2_EE", !33, i64 0}
!33 = !{!"_ZTSSt13unordered_mapIPK13IRInstructionPK7DexTypeSt4hashIS2_ESt8equal_toIS2_ESaISt4pairIKS2_S5_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_HashtableIPK13IRInstructionSt4pairIKS2_PK7DexTypeESaIS8_ENSt8__detail10_Select1stESt8equal_toIS2_ESt4hashIS2_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !13, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !13, i64 48}
!35 = !{!"bool", !14, i64 0}
!36 = !{!6, !13, i64 120}
!37 = !{!6, !13, i64 128}
!38 = !{!6, !35, i64 224}
!39 = !{i8 0, i8 2}
!40 = !{}


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