diff options
Diffstat (limited to 'src/expr/kind_middle.h')
-rw-r--r-- | src/expr/kind_middle.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/expr/kind_middle.h b/src/expr/kind_middle.h new file mode 100644 index 000000000..6c352c3c9 --- /dev/null +++ b/src/expr/kind_middle.h @@ -0,0 +1,33 @@ +/********************* -*- C++ -*- */ +/** kind_middle.h + ** Original author: + ** Major contributors: none + ** Minor contributors (to current version): none + ** This file is part of the CVC4 prototype. + ** Copyright (c) 2009, 2010 The Analysis of Computer Systems Group (ACSys) + ** Courant Institute of Mathematical Sciences + ** New York University + ** See the file COPYING in the top-level source directory for licensing + ** information. + ** + ** Kinds of Nodes. + **/ + + LAST_KIND + +};/* enum Kind */ + +inline std::ostream& operator<<(std::ostream&, CVC4::Kind) CVC4_PUBLIC; +inline std::ostream& operator<<(std::ostream& out, CVC4::Kind k) { + using namespace CVC4; + + switch(k) { + + /* special cases */ + case UNDEFINED_KIND: out << "UNDEFINED_KIND"; break; + case NULL_EXPR: out << "NULL"; break; + + case EQUAL: out << "EQUAL"; break; + case ITE: out << "ITE"; break; + case SKOLEM: out << "SKOLEM"; break; + case VARIABLE: out << "VARIABLE"; break; |