-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take the less-equal binary function as a argument in PatriciaTreeCore…
…::leq Summary: We want to use patricia trees in another tool internally, to improve performance. That tool has an abstract domain interface that has an additional parameter for its `leq` operator. Unfortunately, the `leq` operator in sparta is a static method in the `ValueInterface`, which cannot be adapted for that tool. To unblock the situation, let's make `PatriciaTreeCore` (the internal class representing patricia tree) accept an arbitrary operator for its `leq` method. Note that `PatriciaTreeMap`, `PatriciaTreeMapAbstractEnvironment` and `PatriciaTreeMapAbstractPartition` are unchanged. We also expose a `find` method that returns nullptr when the key is not found. This will also be necessary. Reviewed By: arnaudvenet Differential Revision: D60052170 fbshipit-source-id: c27eeaef4872fe8d4b9b93409e5017622faf1952
- Loading branch information
1 parent
59322e0
commit 850b004
Showing
2 changed files
with
22 additions
and
18 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
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