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

; 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.anon = type { ptr, ptr, ptr, ptr }
%"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.27" }
%"struct.std::__detail::_Node_iterator.27" = type { %"struct.std::__detail::_Node_iterator_base.28" }
%"struct.std::__detail::_Node_iterator_base.28" = type { ptr }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.cfg::CFGMutation" = type { ptr, %class.UnorderedMap }
%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 }

; 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 noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EKP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSE_(ptr noundef nonnull align 8 dereferenceable(16)) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3cfg11CFGMutation20reduce_block_changesEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EEPb(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef %3) #2 align 2 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca %class.anon, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.boost::intrusive::list_iterator", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  store i8 0, ptr %10, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 0, ptr %11, align 1, !tbaa !9
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  %21 = getelementptr inbounds %class.anon, ptr %12, i32 0, i32 0
  store ptr %19, ptr %21, align 8, !tbaa !11
  %22 = getelementptr inbounds %class.anon, ptr %12, i32 0, i32 1
  store ptr %7, ptr %22, align 8, !tbaa !5
  %23 = getelementptr inbounds %class.anon, ptr %12, i32 0, i32 2
  store ptr %10, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds %class.anon, ptr %12, i32 0, i32 3
  store ptr %11, ptr %24, align 8, !tbaa !5
  %25 = call noundef i64 @"_Z18unordered_erase_ifI12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EESt4hashIS2_ESt8equal_toIS2_EEZNS5_20reduce_block_changesEPNS4_5BlockERSE_PbE3$_0TnNSt9enable_ifIXaasr3stdE12is_base_of_vI13UnorderedBaseIT_ESM_Entsr3stdE12is_base_of_vI16UnorderedBagBaseSM_EEbE4typeELb1EEmRSM_RKT0_"(ptr noundef nonnull align 8 dereferenceable(56) %20, ptr noundef nonnull align 8 dereferenceable(32) %12)
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call noundef zeroext i1 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %26)
  br i1 %27, label %28, label %29

28:                                               ; preds = %4
  store i1 false, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %76

29:                                               ; preds = %4
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = call noundef i64 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %30)
  %32 = icmp eq i64 %31, 1
  br i1 %32, label %33, label %58

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call ptr @_Z13unordered_anyI12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EESt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESH_EEbE4typeELb1EEDaRSH_(ptr noundef nonnull align 8 dereferenceable(56) %34)
  %36 = getelementptr inbounds %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", ptr %15, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.27", ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.28", ptr %37, i32 0, i32 0
  store ptr %35, ptr %38, align 8
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE13FixedIteratordeEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  store ptr %39, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EKP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSE_(ptr noundef nonnull align 8 dereferenceable(16) %40) #5
  store ptr %41, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EKP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSE_(ptr noundef nonnull align 8 dereferenceable(16) %42) #5
  store ptr %43, ptr %17, align 8, !tbaa !5
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %45)
  %47 = call noundef zeroext i1 @_ZN6opcode18is_move_result_anyE8IROpcode(i16 noundef zeroext %46)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  br i1 %47, label %48, label %54

48:                                               ; preds = %33
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  %50 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #5
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cfg11CFGMutation9ChangeSet12get_iteratorEv(ptr noundef nonnull align 8 dereferenceable(232) %50)
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN3cfg5Block14get_first_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8 %18, ptr noundef nonnull align 8 dereferenceable(104) %52)
  %53 = call noundef zeroext i1 @_ZN5boost9intrusiveeqERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %18)
  br label %54

54:                                               ; preds = %48, %33
  %55 = phi i1 [ false, %33 ], [ %53, %48 ]
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = zext i1 %55 to i8
  store i8 %57, ptr %56, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  store i1 true, ptr %5, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %76

58:                                               ; preds = %29
  %59 = load i8, ptr %10, align 1, !tbaa !9, !range !13, !noundef !14
  %60 = trunc i8 %59 to i1
  br i1 %60, label %72, label %61

61:                                               ; preds = %58
  %62 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %70

64:                                               ; preds = %61
  %65 = getelementptr inbounds %"class.cfg::CFGMutation", ptr %19, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !15
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = call noundef ptr @_ZNK3cfg16ControlFlowGraph21get_succ_edge_of_typeEPKNS_5BlockENS_8EdgeTypeE(ptr noundef nonnull align 8 dereferenceable(160) %66, ptr noundef %67, i8 noundef zeroext 2)
  %69 = icmp ne ptr %68, null
  br label %70

70:                                               ; preds = %64, %61
  %71 = phi i1 [ false, %61 ], [ %69, %64 ]
  br label %72

72:                                               ; preds = %70, %58
  %73 = phi i1 [ true, %58 ], [ %71, %70 ]
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = zext i1 %73 to i8
  store i8 %75, ptr %74, align 1, !tbaa !9
  store i1 true, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %76

76:                                               ; preds = %72, %54, %28
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  %77 = load i1, ptr %5, align 1
  ret i1 %77
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @"_Z18unordered_erase_ifI12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EESt4hashIS2_ESt8equal_toIS2_EEZNS5_20reduce_block_changesEPNS4_5BlockERSE_PbE3$_0TnNSt9enable_ifIXaasr3stdE12is_base_of_vI13UnorderedBaseIT_ESM_Entsr3stdE12is_base_of_vI16UnorderedBagBaseSM_EEbE4typeELb1EEmRSM_RKT0_"(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z13unordered_anyI12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EESt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESH_EEbE4typeELb1EEDaRSH_(ptr noundef nonnull align 8 dereferenceable(56)) #2

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

declare noundef zeroext i1 @_ZN6opcode18is_move_result_anyE8IROpcode(i16 noundef zeroext) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9intrusiveeqERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @_ZN3cfg5Block14get_first_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) #3

declare noundef ptr @_ZNK3cfg16ControlFlowGraph21get_succ_edge_of_typeEPKNS_5BlockENS_8EdgeTypeE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, i8 noundef zeroext) #3

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 = { 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 = { "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 = { 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 #5 = { 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 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZN3cfg11CFGMutation20reduce_block_changesEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EEPbE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSN3cfg11CFGMutationE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTS12UnorderedMapIPN3cfg5BlockES_IP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteIS7_EESt4hashIS4_ESt8equal_toIS4_EESB_IS2_ESD_IS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIPN3cfg5BlockE12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteIS8_EESt4hashIS5_ESt8equal_toIS5_EESC_IS2_ESE_IS2_ESaISt4pairIKS2_SG_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIPN3cfg5BlockESt4pairIKS2_12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteISA_EESt4hashIS7_ESt8equal_toIS7_EEESaISJ_ENSt8__detail10_Select1stESG_IS2_ESE_IS2_ENSL_18_Mod_range_hashingENSL_20_Default_ranged_hashENSL_20_Prime_rehash_policyENSL_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}


; 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.anon = type { ptr, ptr, ptr, ptr }
%"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator" = type { %"struct.std::__detail::_Node_iterator.27" }
%"struct.std::__detail::_Node_iterator.27" = type { %"struct.std::__detail::_Node_iterator_base.28" }
%"struct.std::__detail::_Node_iterator_base.28" = type { ptr }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }

; 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 noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EKP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSE_(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3cfg11CFGMutation20reduce_block_changesEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EEPb(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(56) %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #2 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca %class.anon, align 8
  %9 = alloca %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", align 8
  %10 = alloca %"class.boost::intrusive::list_iterator", align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  store i8 0, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  store ptr %0, ptr %8, align 8, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %5, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %8, i64 16
  store ptr %6, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %7, ptr %13, align 8, !tbaa !5
  %14 = call noundef i64 @"_Z18unordered_erase_ifI12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EESt4hashIS2_ESt8equal_toIS2_EEZNS5_20reduce_block_changesEPNS4_5BlockERSE_PbE3$_0TnNSt9enable_ifIXaasr3stdE12is_base_of_vI13UnorderedBaseIT_ESM_Entsr3stdE12is_base_of_vI16UnorderedBagBaseSM_EEbE4typeELb1EEmRSM_RKT0_"(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(32) %8)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  %15 = call noundef zeroext i1 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  br i1 %15, label %49, label %16

16:                                               ; preds = %4
  %17 = call noundef i64 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  %18 = icmp eq i64 %17, 1
  br i1 %18, label %19, label %35

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %20 = call ptr @_Z13unordered_anyI12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EESt4hashIS2_ESt8equal_toIS2_EETnNSt9enable_ifIXsr3stdE12is_base_of_vI13UnorderedBaseIT_ESH_EEbE4typeELb1EEDaRSH_(ptr noundef nonnull align 8 dereferenceable(56) %2)
  store ptr %20, ptr %9, align 8
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE13FixedIteratordeEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EKP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSE_(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EKP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EEERNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERSE_(ptr noundef nonnull align 8 dereferenceable(16) %21) #5
  %24 = load ptr, ptr %22, align 8, !tbaa !5
  %25 = call noundef zeroext i16 @_ZNK13IRInstruction6opcodeEv(ptr noundef nonnull align 8 dereferenceable(32) %24)
  %26 = call noundef zeroext i1 @_ZN6opcode18is_move_result_anyE8IROpcode(i16 noundef zeroext %25)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  br i1 %26, label %27, label %33

27:                                               ; preds = %19
  %28 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3cfg11CFGMutation9ChangeSet12get_iteratorEv(ptr noundef nonnull align 8 dereferenceable(232) %28)
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN3cfg5Block14get_first_insnEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::intrusive::list_iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(104) %30)
  %31 = call noundef zeroext i1 @_ZN5boost9intrusiveeqERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %32 = zext i1 %31 to i8
  br label %33

33:                                               ; preds = %27, %19
  %34 = phi i8 [ 0, %19 ], [ %32, %27 ]
  store i8 %34, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %49

35:                                               ; preds = %16
  %36 = load i8, ptr %6, align 1, !tbaa !9, !range !13, !noundef !14
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %47, label %38

38:                                               ; preds = %35
  %39 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %40 = trunc nuw i8 %39 to i1
  br i1 %40, label %41, label %47

41:                                               ; preds = %38
  %42 = load ptr, ptr %0, align 8, !tbaa !15
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call noundef ptr @_ZNK3cfg16ControlFlowGraph21get_succ_edge_of_typeEPKNS_5BlockENS_8EdgeTypeE(ptr noundef nonnull align 8 dereferenceable(160) %42, ptr noundef %43, i8 noundef zeroext 2)
  %45 = icmp ne ptr %44, null
  %46 = zext i1 %45 to i8
  br label %47

47:                                               ; preds = %38, %41, %35
  %48 = phi i8 [ 1, %35 ], [ 0, %38 ], [ %46, %41 ]
  store i8 %48, ptr %3, align 1, !tbaa !9
  br label %49

49:                                               ; preds = %4, %47, %33
  %.0 = xor i1 %15, true
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  ret i1 %.0
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i64 @"_Z18unordered_erase_ifI12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS6_EESt4hashIS2_ESt8equal_toIS2_EEZNS5_20reduce_block_changesEPNS4_5BlockERSE_PbE3$_0TnNSt9enable_ifIXaasr3stdE12is_base_of_vI13UnorderedBaseIT_ESM_Entsr3stdE12is_base_of_vI16UnorderedBagBaseSM_EEbE4typeELb1EEmRSM_RKT0_"(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

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

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

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

declare noundef zeroext i1 @_ZN6opcode18is_move_result_anyE8IROpcode(i16 noundef zeroext) local_unnamed_addr #3

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost9intrusiveeqERKNS0_13list_iteratorINS0_8mhtraitsI15MethodItemEntryNS0_16list_member_hookIJEEEXadL_ZNS3_10list_hook_EEEEELb0EEES9_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

declare void @_ZN3cfg5Block14get_first_insnEv(ptr dead_on_unwind writable sret(%"class.boost::intrusive::list_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #3

declare noundef ptr @_ZNK3cfg16ControlFlowGraph21get_succ_edge_of_typeEPKNS_5BlockENS_8EdgeTypeE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, i8 noundef zeroext) local_unnamed_addr #3

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 = { 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 = { "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 = { 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 #5 = { 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 = !{!12, !6, i64 0}
!12 = !{!"_ZTSZN3cfg11CFGMutation20reduce_block_changesEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EEPbE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSN3cfg11CFGMutationE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTS12UnorderedMapIPN3cfg5BlockES_IP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteIS7_EESt4hashIS4_ESt8equal_toIS4_EESB_IS2_ESD_IS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIPN3cfg5BlockE12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteIS8_EESt4hashIS5_ESt8equal_toIS5_EESC_IS2_ESE_IS2_ESaISt4pairIKS2_SG_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIPN3cfg5BlockESt4pairIKS2_12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteISA_EESt4hashIS7_ESt8equal_toIS7_EEESaISJ_ENSt8__detail10_Select1stESG_IS2_ESE_IS2_ENSL_18_Mod_range_hashingENSL_20_Default_ranged_hashENSL_20_Prime_rehash_policyENSL_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}


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