Function sequant::detail::rename(Variable&, PreprocessResult&, const std::function<bool(const Variable&)>&)

Function Documentation

bool sequant::detail::rename(Variable &variable, PreprocessResult &result, const std::function<bool(const Variable&)> &acceptable)

Renames the given Variable to a name that doesn’t collide with any currently loaded object. This may reuse previously used/declares variables.

Parameters:

acceptable – If provided, only names for which this predicate returns true are considered. In this case, the variable need not be loaded.