Hash Calculations for Domains#578
Merged
Merged
Conversation
Contributor
|
Looks good to me, should we add a CI test that checks that the hash of two reordered domains stays the same? |
Member
Author
|
How easy would this be? I already have a unit test in ViperServer that checks whether verifying two input programs that only differ in the order of domain functions and/or axioms results in the latter one being cached |
Contributor
|
As easy as adding another unit test to Silver:
Since hashes are computed over the Silver AST, the Silver repo seems a more natural location for such tests than the ViperServer repo. But I'd keep the ViperServer test nonetheless, it probably has more of an end-to-end test flavour. |
0513ec3 to
1886df0
Compare
…main functions and axioms
… and adds unit tests
1886df0 to
86b4811
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The hash of a domain should not depend on the precise ordering of its domain functions and domain axioms. This is important when performing cache lookups as a cached verification result can still safely be used even if the some domain functions are in a slightly different order