#ifndef __CVC4__CONTEXT__CDMAP_FORWARD_H
#define __CVC4__CONTEXT__CDMAP_FORWARD_H
+/// \cond internals
+
namespace __gnu_cxx {
template <class Key> struct hash;
}/* __gnu_cxx namespace */
}/* CVC4::context namespace */
}/* CVC4 namespace */
+/// \endcond
+
#endif /* __CVC4__CONTEXT__CDMAP_FORWARD_H */
#ifndef __CVC4__CONTEXT__CDSET_FORWARD_H
#define __CVC4__CONTEXT__CDSET_FORWARD_H
+/// \cond internals
+
namespace __gnu_cxx {
template <class Key> struct hash;
}/* __gnu_cxx namespace */
}/* CVC4::context namespace */
}/* CVC4 namespace */
+/// \endcond
+
#endif /* __CVC4__CONTEXT__CDSET_FORWARD_H */
#include <memory>
+/// \cond internals
+
namespace __gnu_cxx {
template <class Key> struct hash;
}/* __gnu_cxx namespace */
template <class T, class CleanUp = DefaultCleanUp<T>, class Allocator = std::allocator<T> >
class CDList;
+/// \endcond
+
}/* CVC4::context namespace */
}/* CVC4 namespace */
%include "expr/expr_stream.i"
%include "smt/smt_engine.i"
-%include "smt/no_such_function_exception.i"
%include "smt/modal_exception.i"
%include "options/options.i"
smt_engine_scope.cpp \
smt_engine_scope.h \
modal_exception.h \
- no_such_function_exception.h \
simplification_mode.h \
simplification_mode.cpp
EXTRA_DIST = \
options_handlers.h \
smt_options_template.cpp \
- no_such_function_exception.i \
modal_exception.i \
smt_engine.i
+++ /dev/null
-/********************* */
-/*! \file no_such_function_exception.h
- ** \verbatim
- ** Original author: mdeters
- ** Major contributors: none
- ** Minor contributors (to current version): none
- ** This file is part of the CVC4 prototype.
- ** Copyright (c) 2009, 2010, 2011 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.\endverbatim
- **
- ** \brief An exception that is thrown when an option setting is not
- ** understood.
- **
- ** An exception that is thrown when an interactive-only feature while
- ** CVC4 is being used in a non-interactive setting (for example, the
- ** "(get-assertions)" command in an SMT-LIBv2 script).
- **/
-
-#include "cvc4_public.h"
-
-#ifndef __CVC4__SMT__NO_SUCH_FUNCTION_EXCEPTION_H
-#define __CVC4__SMT__NO_SUCH_FUNCTION_EXCEPTION_H
-
-#include "util/exception.h"
-
-namespace CVC4 {
-
-class CVC4_PUBLIC NoSuchFunctionException : public CVC4::Exception {
-public:
- NoSuchFunctionException(Expr name) :
- Exception(std::string("Undefined function: `") + name.toString() + "': ") {
- }
-
- NoSuchFunctionException(Expr name, const std::string& msg) :
- Exception(std::string("Undefined function: `") + name.toString() + "': " + msg) {
- }
-};/* class NoSuchFunctionException */
-
-}/* CVC4 namespace */
-
-#endif /* __CVC4__SMT__NO_SUCH_FUNCTION_EXCEPTION_H */
+++ /dev/null
-%{
-#include "smt/no_such_function_exception.h"
-%}
-
-%include "smt/no_such_function_exception.h"
#include "expr/node_builder.h"
#include "prop/prop_engine.h"
#include "smt/modal_exception.h"
-#include "smt/no_such_function_exception.h"
#include "smt/smt_engine.h"
#include "smt/smt_engine_scope.h"
#include "theory/theory_engine.h"
*
* Returns false if the formula simplifies to "false"
*/
- bool simplifyAssertions() throw(NoSuchFunctionException, AssertionException);
+ bool simplifyAssertions() throw(TypeCheckingException, AssertionException);
public:
* even be simplified.
*/
void addFormula(TNode n)
- throw(NoSuchFunctionException, AssertionException);
+ throw(TypeCheckingException, AssertionException);
/**
* Expand definitions in n.
*/
Node expandDefinitions(TNode n, hash_map<TNode, Node, TNodeHashFunction>& cache)
- throw(NoSuchFunctionException, AssertionException);
+ throw(TypeCheckingException, AssertionException);
};/* class SmtEnginePrivate */
}
Node SmtEnginePrivate::expandDefinitions(TNode n, hash_map<TNode, Node, TNodeHashFunction>& cache)
- throw(NoSuchFunctionException, AssertionException) {
+ throw(TypeCheckingException, AssertionException) {
if(n.getKind() != kind::APPLY && n.getNumChildren() == 0) {
// don't bother putting in the cache
Debug("expand") << " : \"" << name << "\"" << endl;
}
if(i == d_smt.d_definedFunctions->end()) {
- throw NoSuchFunctionException(Expr(d_smt.d_exprManager, new Node(func)));
+ throw TypeCheckingException(n.toExpr(), std::string("Undefined function: `") + func.toString() + "'");
}
if(Debug.isOn("expand")) {
Debug("expand") << " defn: " << def.getFunction() << endl
// returns false if simpflication led to "false"
bool SmtEnginePrivate::simplifyAssertions()
- throw(NoSuchFunctionException, AssertionException) {
+ throw(TypeCheckingException, AssertionException) {
try {
Trace("simplify") << "SmtEnginePrivate::simplify()" << endl;
}
void SmtEnginePrivate::addFormula(TNode n)
- throw(NoSuchFunctionException, AssertionException) {
+ throw(TypeCheckingException, AssertionException) {
Trace("smt") << "SmtEnginePrivate::addFormula(" << n << ")" << endl;
#include "util/proof.h"
#include "util/model.h"
#include "smt/modal_exception.h"
-#include "smt/no_such_function_exception.h"
#include "util/hash.h"
#include "options/options.h"
#include "util/result.h"