** See the file COPYING in the top-level source directory for licensing
** information.
**
- ** Kinds of Nodes.
+ ** Epilogue for the Node kind header. This file finishes off the
+ ** pretty-printing function for the Kind enum.
**/
case LAST_KIND: out << "LAST_KIND"; break;
** See the file COPYING in the top-level source directory for licensing
** information.
**
- ** Kinds of Nodes.
+ ** Middle section of the Node kind header. This file finishes off the
+ ** Kind enum and starts the pretty-printing function definition.
**/
LAST_KIND
** See the file COPYING in the top-level source directory for licensing
** information.
**
- ** Kinds of Nodes.
+ ** Prologue of the Node kind header. This file starts the Kind enumeration.
**/
#ifndef __CVC4__KIND_H
** $0 $@
**
** for the CVC4 project.
- **
**/
EOF
abort();
}
- // TODO: adjust return value based on lastResult
- return 0;
+ switch(lastResult.asSatisfiabilityResult().isSAT()) {
+
+ case Result::SAT:
+ return 10;
+
+ case Result::UNSAT:
+ return 20;
+
+ default:
+ return 0;
+
+ }
}
void doCommand(SmtEngine& smt, Command* cmd) {
d_which(TYPE_VALIDITY) {
}
- enum SAT isSAT();
- enum Validity isValid();
+ enum SAT isSAT() {
+ return d_which == TYPE_SAT ? d_sat : SAT_UNKNOWN;
+ }
+ enum Validity isValid() {
+ return d_which == TYPE_VALIDITY ? d_validity : VALIDITY_UNKNOWN;
+ }
enum UnknownExplanation whyUnknown();
inline Result asSatisfiabilityResult() const;