summaryrefslogtreecommitdiff
path: root/src/theory/arith/tableau.cpp
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2011-02-18 23:28:19 +0000
committerTim King <taking@cs.nyu.edu>2011-02-18 23:28:19 +0000
commit005066130a774c9e4aa838ca500d5fd3137909be (patch)
tree00f30cf01943464435f9ae50ddfec53822617bd8 /src/theory/arith/tableau.cpp
parentb2eba85abe17f3cb661b537d4ac6c55c2e222c65 (diff)
Changes:
- ArithVar is no longer an attribute - RowVector's destructor reduces the row count of its variables upon. - Tableau's destructor now free its rows instead of leaking memory. - Added ability to convert ReducedRowVectors into equivalent Nodes. - getValue() should work again.
Diffstat (limited to 'src/theory/arith/tableau.cpp')
-rw-r--r--src/theory/arith/tableau.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/theory/arith/tableau.cpp b/src/theory/arith/tableau.cpp
index 5f142fe8a..5ba173eb6 100644
--- a/src/theory/arith/tableau.cpp
+++ b/src/theory/arith/tableau.cpp
@@ -24,6 +24,14 @@ using namespace CVC4;
using namespace CVC4::theory;
using namespace CVC4::theory::arith;
+Tableau::~Tableau(){
+ while(!d_activeBasicVars.empty()){
+ ArithVar curr = *(d_activeBasicVars.begin());
+ ReducedRowVector* vec = removeRow(curr);
+ delete vec;
+ }
+}
+
void Tableau::addRow(ArithVar basicVar,
const std::vector<Rational>& coeffs,
const std::vector<ArithVar>& variables){
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback