/********************* */ /*! \file nary_builder.h ** \verbatim ** Original author: Tim King ** Major contributors: none ** Minor contributors (to current version): none ** This file is part of the CVC4 project. ** Copyright (c) 2009-2014 New York University and The University of Iowa ** See the file COPYING in the top-level source directory for licensing ** information.\endverbatim ** ** \brief [[ Add one-line brief description here ]] ** ** [[ Add lengthier description here ]] ** \todo document this file **/ #include "cvc4_private.h" #pragma once #include #include "expr/node.h" namespace CVC4{ namespace util { class NaryBuilder { public: static Node mkAssoc(Kind k, const std::vector& children); static Node zeroArity(Kind k); };/* class NaryBuilder */ class RePairAssocCommutativeOperators { public: RePairAssocCommutativeOperators(); ~RePairAssocCommutativeOperators(); Node rePairAssocCommutativeOperators(TNode n); static bool isAssociateCommutative(Kind k); size_t size() const; void clear(); private: Node case_assoccomm(TNode n); Node case_other(TNode n); typedef std::hash_map NodeMap; NodeMap d_cache; };/* class RePairAssocCommutativeOperators */ }/* util namespace */ }/* CVC4 namespace */