Skip to content

Commit b424d69

Browse files
committed
Lookahead: start working on linear arith [WiP]
1 parent 493e1ab commit b424d69

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/tsolvers/lasolver/LASolver.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,14 @@ bool LASolver::setStatus( LASolverStatus s )
623623
return getStatus( );
624624
}
625625

626+
bool LASolver::wouldDeduce(LABoundRef br) const {
627+
LABound const & bound = boundStore[br];
628+
if (bound.getType() == bound_l) {
629+
for (int it = bound.getIdx().x - 1; it >= 0; -- it) {
630+
LABoundRef propagatedBoundRef = boundStore.getBoundByIdx(v, it)
631+
}
632+
}
633+
}
626634

627635
void LASolver::getSimpleDeductions(LVRef v, LABoundRef br)
628636
{

src/tsolvers/lasolver/LASolver.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,11 @@ class LASolver: public TSolver
181181

182182
inline int verbose ( ) const { return config.verbosity(); }
183183

184+
void deduce(LABoundRef bound_prop);
185+
bool wouldDeduce(LABoundRef bound_prop) const;
186+
184187
// Debug stuff
185188
void isProperLeq(PTRef tr); // The Leq term conforms to the assumptions of its form. Only asserts.
186-
void deduce(LABoundRef bound_prop);
187189
};
188190

189191
#endif

0 commit comments

Comments
 (0)