-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for memoized streams to the term model evaluator.
Although it is correct to treat streams according to their SAWCore datatype definition, the naive implementation as a function looses sharing that users expect given the behavior of Cryptol streams. This patch makes sure to memoize concrete evaluations of stream values, and blocks evaluation of stream lookups for values that are not concrete. This significantly improves the performance of the kinds of stream programs that arise from Cryptol.
- Loading branch information
1 parent
4640425
commit f582f67
Showing
1 changed file
with
59 additions
and
8 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