30 const auto& a =
args();
31 return std::accumulate(
32 a.begin(), a.end(),
static_cast<std::size_t
>(1),
33 [](std::size_t c,
const auto& term){
34 return c + term.complexity();
40 for (
const auto& a:
args()) {
41 a.gatherVariables(vars);
46 for (
const auto& a:
args()) {
52 assert(ufun.
id() != 0);
carl is the main namespace for the library.
std::ostream & operator<<(std::ostream &os, const BasicConstraint< Poly > &c)
Prints the given constraint on the given stream.
auto stream_joined(const std::string &glue, const T &v)
Allows to easily output some container with all elements separated by some string.
static UFInstanceManager & getInstance()
Returns the single instance of this class by reference.
Implements an uninterpreted function instance.
void gatherUFs(std::set< UninterpretedFunction > &ufs) const
std::size_t complexity() const
void gatherVariables(carlVariables &vars) const
const UninterpretedFunction & uninterpretedFunction() const
const std::vector< UTerm > & args() const
const std::vector< UTerm > & getArgs(const UFInstance &ufi) const
const UninterpretedFunction & getUninterpretedFunction(const UFInstance &ufi) const
Implements an uninterpreted function.
const std::string & name() const