More tests and a fix for SSA conversion (from #119) #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pulls out a few pieces of #119 without doing the "big change" to fix undefined values in SSA conversion:
ssa_roundtrip
tests that convert to SSA, back out of SSA, and then interprets the result to ensure that they don't crash.to_ssa.py
with some CFGs where the recursive calls wouldn't property clear the stack names. (I used a simpler fix than the one in [SSA] Fix up to_ssa.py and add test cases #119.)This doesn't fix the big outstanding issue in #108, but it preserves some test (suffixed
.BROKEN
) that demonstrate the problem.