}
%{
+// Perl's headers define "seed" to Perl_seed, which breaks
+// gmpxx.h; undo the damage for our CVC4 module.
+#ifdef SWIGPERL
+# undef seed
+#endif /* SWIGPERL */
+
namespace CVC4 {}
using namespace CVC4;
Node TheoryArrays::preprocess(TNode atom) {
if (d_donePreregister) return atom;
- Assert(atom.getKind() == kind::EQUAL);
+ Assert(atom.getKind() == kind::EQUAL, "expected EQUAL, got %s", atom.toString().c_str());
return recursivePreprocessTerm(atom);
}
Debug("substitution") << "-- reset the cache" << std::endl;
}
- SubstitutionMap::NodeMap::const_iterator it = d_substitutions.begin();
- SubstitutionMap::NodeMap::const_iterator it_end = d_substitutions.end();
- for (; it != it_end; ++ it) {
- Debug("substitution") << "substs has ( " << (*it).first << " => " << (*it).second << " )" << std::endl;
- }
-
- SubstitutionMap::NodeCache::const_iterator iit = d_substitutionCache.begin();
- SubstitutionMap::NodeCache::const_iterator iit_end = d_substitutionCache.end();
- for (; iit != iit_end; ++ iit) {
- Debug("substitution") << "CACHE has ( " << (*iit).first << " => " << (*iit).second << " )" << std::endl;
- }
-
// Perform the substitution
Node result = internalSubstitute(t, d_substitutionCache);
Debug("substitution") << "SubstitutionMap::apply(" << t << ") => " << result << std::endl;
%ignore CVC4::operator<<(std::ostream&, const Cardinality&);
%ignore CVC4::operator<<(std::ostream&, Cardinality::Beth);
+namespace CVC4 {
class Beth {
Integer d_index;
Unknown() throw() {}
~Unknown() throw() {}
};/* class Cardinality::Unknown */
+}
%include "util/cardinality.h"
%ignore CVC4::operator<<(std::ostream&, const Datatype::Constructor::Arg&);
%feature("valuewrapper") CVC4::Datatype::UnresolvedType;
+%feature("valuewrapper") CVC4::Datatype::Constructor;
%include "util/datatype.h"