aviatesk / aviatesk/juliacon2021-workshop-pkgdev

doesn't show all backedges

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
33
Forks
4
PR merge metrics
No merged PRs in 30d

Description

the following code should print `all_backedges` but it only prints one. Not sure what's wrong

```julia-repl
1.9.0-beta4>using MethodAnalysis

1.9.0-beta4>mi = methodinstances(@which issorted([1, 3, 2]))[1]
MethodInstance for issorted(::Vector{UInt32})

1.9.0-beta4>println(mi)
MethodInstance for issorted(::Vector{UInt32})

1.9.0-beta4>direct_backedges(mi) # also loaded from MethodAnalysis.jl

1-element Vector{Core.MethodInstance}:
MethodInstance for unique!(::Vector{UInt32})

1.9.0-beta4>

1.9.0-beta4>all_backedges(mi)
1-element Vector{Core.MethodInstance}:
MethodInstance for unique!(::Vector{UInt32})
```

In tim's case it shows `all_backedges`

Screenshot-2023-02-12-at-3 52 24-PM

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Julia REPL example using `methodinstances`, `direct_backedges`, and `all_backedges` from MethodAnalysis. Trace why `all_backedges(mi)` returns only `unique!(::Vector{UInt32})`, and consider the issue complete when it reports all expected backedges, including those shown in the referenced example.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.