diff options
author | Liana Hadarean <lianahady@gmail.com> | 2014-11-18 14:58:34 -0800 |
---|---|---|
committer | Liana Hadarean <lianahady@gmail.com> | 2014-11-18 14:58:34 -0800 |
commit | 081506fa4c86ac0ab7ed6c8929c6e1fdd933c4ca (patch) | |
tree | 7f3942bd82e00b383d85a7ee70f57355492755ee /src/theory/bv/bitblaster_template.h | |
parent | fb6326517ce661d4d9bb1c593cce2a8b91eb51b3 (diff) |
clear model cache in BVQuickCheck clearSolver() (fixes bug 587)
Diffstat (limited to 'src/theory/bv/bitblaster_template.h')
-rw-r--r-- | src/theory/bv/bitblaster_template.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/theory/bv/bitblaster_template.h b/src/theory/bv/bitblaster_template.h index e13587323..79434102e 100644 --- a/src/theory/bv/bitblaster_template.h +++ b/src/theory/bv/bitblaster_template.h @@ -447,8 +447,10 @@ Node TBitblaster<T>::getTermModel(TNode node, bool fullModel) { // if it is a leaf may ask for fullModel value = getModelFromSatSolver(node, fullModel); Debug("bv-equality-status")<< "TLazyBitblaster::getTermModel from VarValue" << node <<" => " << value <<"\n"; - Assert (!value.isNull()); - d_modelCache[node] = value; + Assert ((fullModel && !value.isNull() && value.isConst()) || !fullModel); + if (!value.isNull()) { + d_modelCache[node] = value; + } return value; } Assert (node.getType().isBitVector()); |