You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no simple way to pass in arguments to the analyses. Here, we pass in an analysis with a defaulted (empty) data structure. However, for an analysis such as reaching definitions or defined analysis, we want to pass in the function arguments to the first block.
Yeah, I wrote the DF analysis examples before function parameters existed. The right thing to do is to still use empty sets as the initial values but essentially hallucinate an entry block that defines the parameters.
Example
Actual:
Expected
awesome_integer
should be defined in.entry
.I think the issue here is two-fold.
There's no simple way to pass in arguments to the analyses. Here, we pass in an analysis with a defaulted (empty) data structure. However, for an analysis such as reaching definitions or defined analysis, we want to pass in the function arguments to the first block.
bril/examples/df.py
Lines 82 to 92 in dbbd8e8
Even if we do pass in the correct function arguments,
bril/examples/df.py
Lines 48 to 49 in dbbd8e8
So, even though
in_[.entry]
is initialized correctly, it is over-written afterward.As usual, let me know if I'm off-target.
The text was updated successfully, but these errors were encountered: