* test/unit/Makefile.am, test/unit/expr/attribute_white.h,
authorMorgan Deters <mdeters@gmail.com>
Tue, 16 Mar 2010 20:24:37 +0000 (20:24 +0000)
committerMorgan Deters <mdeters@gmail.com>
Tue, 16 Mar 2010 20:24:37 +0000 (20:24 +0000)
commit9576517676138a8ca2887a967f1b056662ef6754
treef0040a8189d20496dcaa760055b2b818f8a57525
parent12ad4cf2de936acbf8c21117804c69b2deaa7272
* test/unit/Makefile.am, test/unit/expr/attribute_white.h,
  test/unit/expr/node_white.h: add whitebox attribute test (pulled out
  attribute stuff from node_white)

* test/unit/parser/parser_black.h: fix memory leaks uncovered by
  valgrind

* src/theory/interrupted.h: actually make this "lightweight" (not
  derived from CVC4::Exception), as promised in my last commit

* src/theory/uf/theory_uf.h, test/unit/expr/attribute_black.h: match
  the new-style cleanup function definition

* src/expr/attribute.cpp, src/expr/attribute.h: support for attribute
  deletion, custom cleanup functions, clearer cleanup function
  definition.

* src/expr/node_manager.h, src/expr/node_manager.cpp: reclaim
  remaining zombies in dtor, rename NodeValueSet ==> "NodeValuePool",
  and enable freeing of NodeValues

* src/expr/type.h, src/expr/type.cpp: reference-counting for types,
  customized cleanup function for types, also code cleanup

* (various): changed "const Type*" to "Type*" (to enable
  reference-counting etc.  Types are still immutable.)

* src/util/output.h: add ::isOn()-- which queries whether a
  Debug/Trace flag is currently on or not.

* src/smt/smt_engine.cpp, src/parser/antlr_parser.cpp,
  src/expr/type.cpp, src/expr/expr_manager.cpp, various others:
  minor code cleanup
26 files changed:
src/expr/attribute.cpp
src/expr/attribute.h
src/expr/expr.cpp
src/expr/expr.h
src/expr/expr_manager.cpp
src/expr/expr_manager.h
src/expr/node.h
src/expr/node_manager.cpp
src/expr/node_manager.h
src/expr/type.cpp
src/expr/type.h
src/parser/antlr_parser.cpp
src/parser/antlr_parser.h
src/parser/cvc/cvc_parser.g
src/parser/smt/smt_lexer.g
src/parser/smt/smt_parser.g
src/smt/smt_engine.cpp
src/theory/interrupted.h
src/theory/uf/theory_uf.h
src/util/output.h
test/unit/Makefile.am
test/unit/expr/attribute_black.h
test/unit/expr/attribute_white.h [new file with mode: 0644]
test/unit/expr/node_black.h
test/unit/expr/node_white.h
test/unit/parser/parser_black.h