-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix values not saved in infinite loops
When propogating a value, it was saved at the end of propogation. If flow ends with an unexitable loop, nothing is saved. This leads to incorrect analysis or crashes for upvalues, as it is expected that accesses in reachable closures use at least one value, perhaps the empty initial. The fix is to also save values when propogating to an item already visited in the current stack (path from root to current node). A loop must contain at least one such backtracking edge. Implementation has to simlutate recursion manually to track set of items in the stack. Performance hit is considerable.
- Loading branch information
Showing
4 changed files
with
75 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters