Created
December 18, 2013 15:43
-
-
Save einarwh/8024509 to your computer and use it in GitHub Desktop.
Getting the possible stack states at the call site.
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
ImmutableHashSet<EvalStack> GetPossibleStacksAt(Instruction call) | |
{ | |
var h = CreateH(call); | |
return _I.Select(h).ToImmutableHashSet(); | |
} | |
Func<EvalStack, EvalStack> CreateH(Instruction call) | |
{ | |
return CreateComposite(_first, call.Previous); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment