; LLVM IR from facebook/redex :: service/cse (CommonSubexpressionElimination)

; 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.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = 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.std::function.252" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.255 = type { ptr, ptr }
%class.anon.256 = type { ptr }
%"class.cse_impl::SharedState" = type { %class.UnorderedSet.6, %class.UnorderedSet.6, %class.UnorderedSet.26, ptr, ptr, %class.UnorderedSet.48, %"class.std::unique_ptr", %class.UnorderedMap, %class.UnorderedMap, %"class.std::unique_ptr.86", %"struct.cse_impl::SharedStateStats", %class.UnorderedMap.94, %class.UnorderedMap.94 }
%class.UnorderedSet.6 = type { %"class.std::unordered_set.8" }
%"class.std::unordered_set.8" = type { %"class.std::_Hashtable.9" }
%"class.std::_Hashtable.9" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.UnorderedSet.26 = type { %"class.std::unordered_set.28" }
%"class.std::unordered_set.28" = type { %"class.std::_Hashtable.29" }
%"class.std::_Hashtable.29" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.UnorderedSet.48 = type { %"class.std::unordered_set.50" }
%"class.std::unordered_set.50" = type { %"class.std::_Hashtable.51" }
%"class.std::_Hashtable.51" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"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.71" }
%"struct.std::_Head_base.71" = type { ptr }
%class.UnorderedMap = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable.73" }
%"class.std::_Hashtable.73" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unique_ptr.86" = type { %"struct.std::__uniq_ptr_data.87" }
%"struct.std::__uniq_ptr_data.87" = type { %"class.std::__uniq_ptr_impl.88" }
%"class.std::__uniq_ptr_impl.88" = type { %"class.std::tuple.89" }
%"class.std::tuple.89" = type { %"struct.std::_Tuple_impl.90" }
%"struct.std::_Tuple_impl.90" = type { %"struct.std::_Head_base.93" }
%"struct.std::_Head_base.93" = type { ptr }
%"struct.cse_impl::SharedStateStats" = type { i64, i64, i64, i64, i64 }
%class.UnorderedMap.94 = type { %"class.std::unordered_map.96" }
%"class.std::unordered_map.96" = type { %"class.std::_Hashtable.97" }
%"class.std::_Hashtable.97" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@_ZN12_GLOBAL__N_132general_memory_barrier_locationsE = external hidden global %class.UnorderedSet, align 8
@.str.108 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__._ZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS5_EE = external hidden unnamed_addr constant [134 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: mustprogress nounwind uwtable
declare dso_local void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS5_EE(ptr dead_on_unwind noalias writable sret(%class.UnorderedSet) align 8 %0, ptr noundef nonnull align 8 dereferenceable(520) %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(56) %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i16, align 2
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %class.UnorderedSet, align 8
  %14 = alloca %"class.std::function.252", align 8
  %15 = alloca %class.anon.255, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %class.anon.256, align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
  %22 = call noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext %21)
  br i1 %22, label %23, label %24

23:                                               ; preds = %4
  br label %26

24:                                               ; preds = %4
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.111, ptr noundef @.str.108, i32 noundef 1376, ptr noundef @__PRETTY_FUNCTION__._ZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS5_EE, i32 noundef 2, ptr noundef @.str.109) #7
  unreachable

25:                                               ; No predecessors!
  br label %26

26:                                               ; preds = %25, %23
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #8
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %27)
  store i16 %28, ptr %9, align 2, !tbaa !9
  %29 = load i16, ptr %9, align 2, !tbaa !9
  %30 = zext i16 %29 to i32
  %31 = icmp eq i32 %30, 88
  br i1 %31, label %32, label %33

32:                                               ; preds = %26
  call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) @_ZN12_GLOBAL__N_132general_memory_barrier_locationsE)
  store i32 1, ptr %10, align 4
  br label %70

33:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = call noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %34)
  store ptr %35, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call noundef i32 @_Z16opcode_to_searchPK13IRInstruction(ptr noundef %37)
  %39 = call noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef %36, i32 noundef %38, ptr noundef null)
  store ptr %39, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #8
  call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13)
  %40 = getelementptr inbounds %"class.cse_impl::SharedState", ptr %19, i32 0, i32 9
  %41 = call noundef ptr @_ZNKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.cse_impl::SharedState", ptr %19, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %44 = getelementptr inbounds %class.anon.255, ptr %15, i32 0, i32 0
  store ptr %19, ptr %44, align 8, !tbaa !11
  %45 = getelementptr inbounds %class.anon.255, ptr %15, i32 0, i32 1
  store ptr %13, ptr %45, align 8, !tbaa !5
  call void @"_ZNSt8functionIFbP9DexMethodEEC2IZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toISB_EEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  %46 = invoke noundef zeroext i1 @_Z35process_base_and_overriding_methodsPKN21method_override_graph5GraphEPK9DexMethodPK12UnorderedSetIS5_St4hashIS5_ESt8equal_toIS5_EEbRKSt8functionIFbPS3_EE(ptr noundef %41, ptr noundef %42, ptr noundef %43, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %47 unwind label %51

47:                                               ; preds = %33
  %48 = xor i1 %46, true
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br i1 %48, label %49, label %59

49:                                               ; preds = %47
  invoke void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) @_ZN12_GLOBAL__N_132general_memory_barrier_locationsE)
          to label %50 unwind label %55

50:                                               ; preds = %49
  store i32 1, ptr %10, align 4
  br label %68

51:                                               ; preds = %33
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %16, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %17, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %69

55:                                               ; preds = %49
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %16, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %17, align 4
  br label %69

59:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %60 = getelementptr inbounds %class.anon.256, ptr %18, i32 0, i32 0
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %61, ptr %60, align 8, !tbaa !5
  %62 = invoke noundef i64 @"_Z18unordered_erase_ifI12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS1_EEZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRKS5_E3$_1TnNSt9enable_ifIXaasr3stdE12is_base_of_vI13UnorderedBaseIT_ESG_Entsr3stdE12is_base_of_vI16UnorderedBagBaseSG_EEbE4typeELb1EEmRSG_RKT0_"(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %63 unwind label %64

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %13) #8
  store i32 1, ptr %10, align 4
  br label %68

64:                                               ; preds = %59
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %16, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %69

68:                                               ; preds = %63, %50
  call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %70

69:                                               ; preds = %64, %55, %51
  call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #8
  br label %71

70:                                               ; preds = %68, %32
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #8
  ret void

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z16opcode_to_searchPK13IRInstruction(ptr noundef) #5

declare noundef zeroext i1 @_Z35process_base_and_overriding_methodsPKN21method_override_graph5GraphEPK9DexMethodPK12UnorderedSetIS5_St4hashIS5_ESt8equal_toIS5_EEbRKSt8functionIFbPS3_EE(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbP9DexMethodEEC2IZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toISB_EEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @"_Z18unordered_erase_ifI12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS1_EEZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRKS5_E3$_1TnNSt9enable_ifIXaasr3stdE12is_base_of_vI13UnorderedBaseIT_ESG_Entsr3stdE12is_base_of_vI16UnorderedBagBaseSG_EEbE4typeELb1EEmRSG_RKT0_"(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { "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 = { noreturn }
attributes #8 = { 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 = !{!"_ZTS8IROpcode", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS5_EEE3$_0", !6, i64 0, !6, i64 8}


; 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.UnorderedSet = type { %"class.std::unordered_set" }
%"class.std::unordered_set" = 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.std::function.252" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.255 = type { ptr, ptr }
%class.anon.256 = type { ptr }

@_ZN12_GLOBAL__N_132general_memory_barrier_locationsE = external hidden global %class.UnorderedSet, align 8
@.str.108 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [37 x i8], align 1
@__PRETTY_FUNCTION__._ZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS5_EE = external hidden unnamed_addr constant [134 x i8], align 1

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 nounwind uwtable
declare dso_local void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1 align 2

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

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

; 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 #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS5_EE(ptr dead_on_unwind noalias writable sret(%class.UnorderedSet) align 8 %0, ptr noundef nonnull align 8 dereferenceable(520) %1, ptr noundef nonnull %2, ptr noundef nonnull align 8 dereferenceable(56) %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.UnorderedSet, align 8
  %6 = alloca %"class.std::function.252", align 8
  %7 = alloca %class.anon.255, align 8
  %8 = alloca %class.anon.256, align 8
  %9 = tail call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %10 = tail call noundef zeroext i1 @_ZN6opcode12is_an_invokeE8IROpcode(i16 noundef zeroext %9)
  br i1 %10, label %12, label %11

11:                                               ; preds = %4
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.111, ptr noundef nonnull @.str.108, i32 noundef 1376, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS5_EE, i32 noundef 2, ptr noundef nonnull @.str.109) #7
  unreachable

12:                                               ; preds = %4
  %13 = tail call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %14 = icmp eq i16 %13, 88
  br i1 %14, label %15, label %16

15:                                               ; preds = %12
  tail call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) @_ZN12_GLOBAL__N_132general_memory_barrier_locationsE)
  br label %38

16:                                               ; preds = %12
  %17 = tail call noundef ptr @_ZNK13IRInstruction10get_methodEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %18 = tail call noundef i32 @_Z16opcode_to_searchPK13IRInstruction(ptr noundef nonnull %2)
  %19 = tail call noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef %17, i32 noundef %18, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #8
  call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5)
  %20 = getelementptr inbounds i8, ptr %1, i64 360
  %21 = call noundef ptr @_ZNKSt10unique_ptrIKN21method_override_graph5GraphESt14default_deleteIS2_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %22 = getelementptr inbounds i8, ptr %1, i64 112
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  store ptr %1, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %5, ptr %23, align 8, !tbaa !10
  call void @"_ZNSt8functionIFbP9DexMethodEEC2IZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toISB_EEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  %24 = invoke noundef zeroext i1 @_Z35process_base_and_overriding_methodsPKN21method_override_graph5GraphEPK9DexMethodPK12UnorderedSetIS5_St4hashIS5_ESt8equal_toIS5_EEbRKSt8functionIFbPS3_EE(ptr noundef %21, ptr noundef %19, ptr noundef nonnull %22, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %25 unwind label %27

25:                                               ; preds = %16
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br i1 %24, label %31, label %26

26:                                               ; preds = %25
  invoke void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) @_ZN12_GLOBAL__N_132general_memory_barrier_locationsE)
          to label %36 unwind label %29

27:                                               ; preds = %16
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %37

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

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store ptr %3, ptr %8, align 8, !tbaa !10
  %32 = invoke noundef i64 @"_Z18unordered_erase_ifI12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS1_EEZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRKS5_E3$_1TnNSt9enable_ifIXaasr3stdE12is_base_of_vI13UnorderedBaseIT_ESG_Entsr3stdE12is_base_of_vI16UnorderedBagBaseSG_EEbE4typeELb1EEmRSG_RKT0_"(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %33 unwind label %34

33:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  br label %36

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

36:                                               ; preds = %26, %33
  call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  br label %38

37:                                               ; preds = %34, %29, %27
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %35, %34 ], [ %28, %27 ]
  call void @_ZN12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn

38:                                               ; preds = %36, %15
  ret void
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_Z14resolve_methodP12DexMethodRef12MethodSearchPK9DexMethod(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z16opcode_to_searchPK13IRInstruction(ptr noundef) local_unnamed_addr #5

declare noundef zeroext i1 @_Z35process_base_and_overriding_methodsPKN21method_override_graph5GraphEPK9DexMethodPK12UnorderedSetIS5_St4hashIS5_ESt8equal_toIS5_EEbRKSt8functionIFbPS3_EE(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbP9DexMethodEEC2IZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toISB_EEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @"_Z18unordered_erase_ifI12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS1_EEZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRKS5_E3$_1TnNSt9enable_ifIXaasr3stdE12is_base_of_vI13UnorderedBaseIT_ESG_Entsr3stdE12is_base_of_vI16UnorderedBagBaseSG_EEbE4typeELb1EEmRSG_RKT0_"(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { "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 = { noreturn }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"_ZTSZN8cse_impl11SharedState30get_relevant_written_locationsEPK13IRInstructionRK12UnorderedSetI11CseLocation17CseLocationHasherSt8equal_toIS5_EEE3$_0", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!7, !7, i64 0}


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