51 return SortValue(sort, res.first->second);
carl is the main namespace for the library.
SortValue newSortValue(const Sort &sort)
Creates a new value for the given sort.
SortValue defaultSortValue(const Sort &sort)
Returns the default value for the given sort.
std::unordered_map< T1, T2, std::hash< T1 > > FastMap
Base class that implements a singleton.
static SortValueManager & getInstance()
Returns the single instance of this class by reference.
Implements a sort (for defining types of variables and functions).
Implements a sort value, being a value of the uninterpreted domain specified by this sort.
Implements a manager for sort values, containing the actual contents of these sort and allocating the...
SortValueManager()=default
Constructs a sort value manager.
SortValue defaultSortValue(const Sort &sort) const
Returns the default value for the given sort.
carl::FastMap< Sort, std::size_t > mSortValueIDMap
Stores for each sort the latest instantiated sort value.
SortValue newSortValue(const Sort &sort)
Creates a new value for the given sort.