From 4375b60d5df794b2c6193f3892185ea181a0748d Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Wed, 30 Jun 2010 11:12:14 +0000 Subject: * theory "tree" rewriting implemented and works * added TheoryArith::preRewrite() to test and demonstrate the use of pre-rewriting. * array types and type checking now supported * array type checking now supported * theoryOf() dispatching properly to arrays now * theories now required to implement a (simple) identify() function that returns a string identifying them for debugging/user output purposes * added "builtin" theory to hold all built-in kinds and their type rules and rewriting (currently only exploding distinct) * fixed production build failure (regarding NodeSetDepth) * removed an errant "using namespace std" in util/bitvector.h (and made associated trivial fixes elsewhere) * fixes to make unexpected exceptions more verbose in debug builds * fixes to make multiple, cascading assertion fails simpler * minor other fixes to comments etc. --- src/util/array.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/util/array.h (limited to 'src/util/array.h') diff --git a/src/util/array.h b/src/util/array.h new file mode 100644 index 000000000..274421249 --- /dev/null +++ b/src/util/array.h @@ -0,0 +1,31 @@ +/********************* */ +/*! \file array.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 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 Array types. + ** + ** Array types. + **/ + +#include "cvc4_public.h" + +#ifndef __CVC4__ARRAY_H_ +#define __CVC4__ARRAY_H_ + +#include +#include "util/Assert.h" + +// we get ArrayType right now by #including type.h. +// array.h is still useful for the auto-generated kinds #includes. +#include "expr/type.h" + +#endif /* __CVC4__ARRAY_H_ */ -- cgit v1.2.3