[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Soot bugs when first Unit is a target
Ondrej LHOTAK wrote:
> The standard thing in textbooks seems to be to have dummy entry/exit nodes.
> Why can't we have those in UnitGraphs, and add methods to return them?
This sounds reasonable to me.. so then all existing code which uses
these FooGraph objects would have to be adjusted to know to call
FooGraph.getStartNode() (or whatever) instead of FooGraph.getHeads()
when it wanted the "entry point" of the graph...
Probably this is a lot easier than changing that same code to handle
entry points with in-degree > 0.
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com