diff options
author | Tim King <taking@cs.nyu.edu> | 2011-02-17 17:46:31 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2011-02-17 17:46:31 +0000 |
commit | 907850f58916c4a6890156a08301a68b5be43fcb (patch) | |
tree | 251815ce8fc9cc3df1520708894417715d168268 /src/theory/arith/tableau.h | |
parent | 0b6743798125317a4e88366591028691fe7170f8 (diff) |
Row ejection is now completely disabled. Another commit cleaning this one up will follow shortly.
Diffstat (limited to 'src/theory/arith/tableau.h')
-rw-r--r-- | src/theory/arith/tableau.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/theory/arith/tableau.h b/src/theory/arith/tableau.h index 05fcf6cf8..5f2a36505 100644 --- a/src/theory/arith/tableau.h +++ b/src/theory/arith/tableau.h @@ -76,23 +76,28 @@ public: return d_activeBasicVars.end(); } - ReducedRowVector* lookup(ArithVar var){ - Assert(isActiveBasicVariable(var)); - return d_rowsTable[var]; + ReducedRowVector& lookup(ArithVar var){ + Assert(d_activeBasicVars.isMember(var)); + Assert(d_rowsTable[var] != NULL); + return *(d_rowsTable[var]); } + /* private: ReducedRowVector* lookupEjected(ArithVar var){ Assert(isEjected(var)); return d_rowsTable[var]; } + */ public: + uint32_t getRowCount(ArithVar x){ Assert(x < d_rowCount.size()); return d_rowCount[x]; } + void addRow(ArithVar basicVar, const std::vector<Rational>& coeffs, const std::vector<ArithVar>& variables); @@ -107,17 +112,24 @@ public: void printTableau(); + /* bool isEjected(ArithVar var){ return d_basicManager.isMember(var) && !isActiveBasicVariable(var); } + */ + + ReducedRowVector* removeRow(ArithVar basic); + /* void ejectBasic(ArithVar basic){ Assert(d_basicManager.isMember(basic)); Assert(isActiveBasicVariable(basic)); d_activeBasicVars.remove(basic); } + */ + /* void reinjectBasic(ArithVar basic){ AlwaysAssert(false); @@ -128,10 +140,13 @@ public: d_activeBasicVars.add(basic); updateRow(row); } + */ private: + /* inline bool isActiveBasicVariable(ArithVar var){ return d_activeBasicVars.isMember(var); } + */ void updateRow(ReducedRowVector* row); }; |