Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created December 18, 2013 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save einarwh/8024509 to your computer and use it in GitHub Desktop.
Save einarwh/8024509 to your computer and use it in GitHub Desktop.
Getting the possible stack states at the call site.
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