1 /********************* */
2 /*! \file nary_builder.h
4 ** Top contributors (to current version):
5 ** Tim King, Morgan Deters
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS
8 ** in the top-level source directory) and their institutional affiliations.
9 ** All rights reserved. See the file COPYING in the top-level source
10 ** directory for licensing information.\endverbatim
12 ** \brief [[ Add one-line brief description here ]]
14 ** [[ Add lengthier description here ]]
15 ** \todo document this file
19 #include "cvc4_private.h"
24 #include "expr/node.h"
31 static Node
mkAssoc(Kind k
, const std::vector
<Node
>& children
);
32 static Node
zeroArity(Kind k
);
33 };/* class NaryBuilder */
35 class RePairAssocCommutativeOperators
{
37 RePairAssocCommutativeOperators();
38 ~RePairAssocCommutativeOperators();
40 Node
rePairAssocCommutativeOperators(TNode n
);
42 static bool isAssociateCommutative(Kind k
);
47 Node
case_assoccomm(TNode n
);
48 Node
case_other(TNode n
);
50 typedef std::hash_map
<Node
, Node
, NodeHashFunction
> NodeMap
;
52 };/* class RePairAssocCommutativeOperators */