; 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.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"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 }
%struct.MethodItemEntry = type { %"class.boost::intrusive::list_member_hook", i32, %union.anon.79 }
%"class.boost::intrusive::list_member_hook" = type { %"class.boost::intrusive::generic_hook" }
%"class.boost::intrusive::generic_hook" = type { %"struct.boost::intrusive::list_node" }
%"struct.boost::intrusive::list_node" = type { ptr, ptr }
%union.anon.79 = type { ptr }
%"struct.std::pair.29" = type { ptr, %"class.std::unique_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.32" }
%"struct.std::_Head_base.32" = 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 }

@.str.6 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__._ZN3cfg11CFGMutation26process_block_changes_slowEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EE = external hidden unnamed_addr constant [75 x i8], align 1

; 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 ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS2_EEptEv(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, ...) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 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 uwtable
define dso_local noundef zeroext i1 @_ZN3cfg11CFGMutation26process_block_changes_slowEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(56) %2) #3 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.ir_list::InstructionIterableImpl", align 8
  %9 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %10 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", align 8
  %13 = alloca %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = call noundef zeroext i1 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %17)
  br i1 %18, label %20, label %19

19:                                               ; preds = %3
  br label %22

20:                                               ; preds = %3
  call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef @.str.9, ptr noundef @.str.6, i32 noundef 95, ptr noundef @__PRETTY_FUNCTION__._ZN3cfg11CFGMutation26process_block_changes_slowEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EE, i32 noundef 2, ptr noundef @.str.7) #5
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %19
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN7ir_list23InstructionIterableImplILb0EEC2IN3cfg5BlockEEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %23)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %8)
  br label %24

24:                                               ; preds = %64, %62, %22
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %8)
  %25 = call noundef zeroext i1 @_ZNK7ir_list23InstructionIteratorImplILb0EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  br i1 %25, label %27, label %26

26:                                               ; preds = %24
  store i32 2, ptr %11, align 4
  br label %65

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = call noundef ptr @_ZNK7ir_list23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %30 = getelementptr inbounds %struct.MethodItemEntry, ptr %29, i32 0, i32 2
  %31 = call ptr @_ZN12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %28, ptr noundef nonnull align 8 dereferenceable(8) %30)
  %32 = getelementptr inbounds %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", ptr %12, i32 0, i32 0
  %33 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.27", ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.28", ptr %33, i32 0, i32 0
  store ptr %31, ptr %34, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call ptr @_ZN12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %35)
  %37 = getelementptr inbounds %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", ptr %13, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.27", ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.28", ptr %38, i32 0, i32 0
  store ptr %36, ptr %39, align 8
  %40 = call noundef zeroext i1 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE13FixedIteratoreqERKSE_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br i1 %40, label %41, label %43

41:                                               ; preds = %27
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  store i32 3, ptr %11, align 4
  br label %62, !llvm.loop !9

43:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %44 = call noundef ptr @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %45 = getelementptr inbounds %"struct.std::pair.29", ptr %44, i32 0, i32 1
  store ptr %45, ptr %14, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #6
  %48 = getelementptr inbounds %"class.cfg::CFGMutation", ptr %16, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !11
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZN3cfg11CFGMutation9ChangeSet5applyERNS_16ControlFlowGraphEPNS_5BlockERN7ir_list23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(232) %47, ptr noundef nonnull align 8 dereferenceable(160) %49, ptr noundef %50, ptr noundef nonnull align 8 dereferenceable(16) %9)
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %12, i64 8, i1 false)
  %53 = getelementptr inbounds %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", ptr %15, i32 0, i32 0
  %54 = getelementptr inbounds %"struct.std::__detail::_Node_iterator.27", ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base.28", ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8
  call void @_ZN12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE5eraseENSD_13FixedIteratorE(ptr noundef nonnull align 8 dereferenceable(56) %52, ptr %56)
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %57)
  br i1 %58, label %59, label %60

59:                                               ; preds = %43
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %61

60:                                               ; preds = %43
  store i32 0, ptr %11, align 4
  br label %61

61:                                               ; preds = %60, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %62

62:                                               ; preds = %61, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %63 = load i32, ptr %11, align 4
  switch i32 %63, label %65 [
    i32 0, label %64
    i32 3, label %24
  ]

64:                                               ; preds = %62
  br label %24, !llvm.loop !9

65:                                               ; preds = %62, %26
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  %66 = load i32, ptr %11, align 4
  switch i32 %66, label %68 [
    i32 2, label %67
  ]

67:                                               ; preds = %65
  store i1 false, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %68

68:                                               ; preds = %67, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  %69 = load i1, ptr %4, align 1
  ret i1 %69
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3cfg11CFGMutation9ChangeSet5applyERNS_16ControlFlowGraphEPNS_5BlockERN7ir_list23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { noreturn }
attributes #6 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN3cfg11CFGMutationE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTS12UnorderedMapIPN3cfg5BlockES_IP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteIS7_EESt4hashIS4_ESt8equal_toIS4_EESB_IS2_ESD_IS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt13unordered_mapIPN3cfg5BlockE12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteIS8_EESt4hashIS5_ESt8equal_toIS5_EESC_IS2_ESE_IS2_ESaISt4pairIKS2_SG_EEE", !15, i64 0}
!15 = !{!"_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, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !6, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"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.ir_list::InstructionIterableImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"class.boost::intrusive::list_iterator" = type { %"struct.boost::intrusive::iiterator_members" }
%"struct.boost::intrusive::iiterator_members" = type { ptr }
%"class.ir_list::InstructionIteratorImpl" = type { %"class.boost::intrusive::list_iterator", %"class.boost::intrusive::list_iterator" }
%"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 }

@.str.6 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__._ZN3cfg11CFGMutation26process_block_changes_slowEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EE = external hidden unnamed_addr constant [75 x i8], align 1

; 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 ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS2_EEptEv(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 #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 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 uwtable
define dso_local noundef zeroext i1 @_ZN3cfg11CFGMutation26process_block_changes_slowEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(56) %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %"class.ir_list::InstructionIterableImpl", align 8
  %5 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %6 = alloca %"class.ir_list::InstructionIteratorImpl", align 8
  %7 = alloca %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", align 8
  %8 = alloca %"class.UnorderedMap<IRInstruction *, std::unique_ptr<cfg::CFGMutation::ChangeSet>>::FixedIterator", align 8
  %9 = tail call noundef zeroext i1 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  br i1 %9, label %10, label %11

10:                                               ; preds = %3
  tail call void (ptr, ptr, i32, ptr, i32, ptr, ...) @_Z11assert_failPKcS0_jS0_10RedexErrorS0_z(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.6, i32 noundef 95, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3cfg11CFGMutation26process_block_changes_slowEPNS_5BlockER12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_9ChangeSetESt14default_deleteIS7_EESt4hashIS5_ESt8equal_toIS5_EE, i32 noundef 2, ptr noundef nonnull @.str.7) #4
  unreachable

11:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN7ir_list23InstructionIterableImplILb0EEC2IN3cfg5BlockEEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %12 = call noundef zeroext i1 @_ZNK7ir_list23InstructionIteratorImplILb0EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br i1 %12, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %11, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %13 = call noundef ptr @_ZNK7ir_list23InstructionIteratorImplILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %14 = getelementptr inbounds i8, ptr %13, i64 24
  %15 = call ptr @_ZN12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE4findERKS1_(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(8) %14)
  store ptr %15, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %16 = call ptr @_ZN12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  store ptr %16, ptr %8, align 8
  %17 = call noundef zeroext i1 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE13FixedIteratoreqERKSE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %17, label %18, label %20

18:                                               ; preds = %.lr.ph
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN7ir_list23InstructionIteratorImplILb0EEppEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  br label %27, !llvm.loop !5

20:                                               ; preds = %.lr.ph
  %21 = call noundef ptr @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE13FixedIteratorptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = call noundef ptr @_ZNKSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  %24 = load ptr, ptr %0, align 8, !tbaa !7
  %25 = call noundef zeroext i1 @_ZN3cfg11CFGMutation9ChangeSet5applyERNS_16ControlFlowGraphEPNS_5BlockERN7ir_list23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(232) %23, ptr noundef nonnull align 8 dereferenceable(160) %24, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(16) %5)
  %.sroa.0.0.copyload = load ptr, ptr %7, align 8
  call void @_ZN12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE5eraseENSD_13FixedIteratorE(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr %.sroa.0.0.copyload)
  %26 = call noundef zeroext i1 @_ZNK12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %2)
  br i1 %26, label %29, label %27

27:                                               ; preds = %20, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.ir_list::InstructionIteratorImpl") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %4)
  %28 = call noundef zeroext i1 @_ZNK7ir_list23InstructionIteratorImplILb0EEneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br i1 %28, label %.lr.ph, label %.critedge

29:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %30

.critedge:                                        ; preds = %27, %11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %30

30:                                               ; preds = %29, %.critedge
  %31 = phi i1 [ true, %29 ], [ false, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  ret i1 %31
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7ir_list23InstructionIterableImplILb0EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.ir_list::InstructionIteratorImpl") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3cfg11CFGMutation9ChangeSet5applyERNS_16ControlFlowGraphEPNS_5BlockERN7ir_list23InstructionIteratorImplILb0EEE(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 8 dereferenceable(160), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12UnorderedMapIP13IRInstructionSt10unique_ptrIN3cfg11CFGMutation9ChangeSetESt14default_deleteIS5_EESt4hashIS1_ESt8equal_toIS1_EE5eraseENSD_13FixedIteratorE(ptr noundef nonnull align 8 dereferenceable(56), ptr) local_unnamed_addr #3 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 = { 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 #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 = { noreturn }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"_ZTSN3cfg11CFGMutationE", !9, i64 0, !12, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS12UnorderedMapIPN3cfg5BlockES_IP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteIS7_EESt4hashIS4_ESt8equal_toIS4_EESB_IS2_ESD_IS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIPN3cfg5BlockE12UnorderedMapIP13IRInstructionSt10unique_ptrINS0_11CFGMutation9ChangeSetESt14default_deleteIS8_EESt4hashIS5_ESt8equal_toIS5_EESC_IS2_ESE_IS2_ESaISt4pairIKS2_SG_EEE", !14, i64 0}
!14 = !{!"_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", !9, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !9, i64 48}
!15 = !{!"long", !10, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !9, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !10, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass