summaryrefslogtreecommitdiff
path: root/src/theory/theory_model.cpp
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2014-11-05 19:57:24 +0100
committerajreynol <andrew.j.reynolds@gmail.com>2014-11-05 19:57:30 +0100
commit2b64e19e84787c7f510a2e7a536be563072e1c8e (patch)
treefcc7d8072951ab7ff2eef90c1b3b524c92cafa73 /src/theory/theory_model.cpp
parent7e8413ccb5a5f831b9814edd025d0c239b104d9f (diff)
Fix model bug in --mbqi=fmc. Minor cleanup in datatypes.
Diffstat (limited to 'src/theory/theory_model.cpp')
-rw-r--r--src/theory/theory_model.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/theory/theory_model.cpp b/src/theory/theory_model.cpp
index 54a647d89..7e1129e7b 100644
--- a/src/theory/theory_model.cpp
+++ b/src/theory/theory_model.cpp
@@ -169,9 +169,11 @@ Node TheoryModel::getModelValue(TNode n, bool hasBoundVars) const
if (n.getNumChildren() > 0 &&
n.getKind() != kind::BITVECTOR_ACKERMANIZE_UDIV &&
n.getKind() != kind::BITVECTOR_ACKERMANIZE_UREM) {
+ Debug("model-getvalue-debug") << "Get model value children " << n << std::endl;
std::vector<Node> children;
if (n.getKind() == APPLY_UF) {
Node op = getModelValue(n.getOperator(), hasBoundVars);
+ Debug("model-getvalue-debug") << " operator : " << op << std::endl;
children.push_back(op);
}
else if (n.getMetaKind() == kind::metakind::PARAMETERIZED) {
@@ -180,6 +182,7 @@ Node TheoryModel::getModelValue(TNode n, bool hasBoundVars) const
//evaluate the children
for (unsigned i = 0; i < n.getNumChildren(); ++i) {
ret = getModelValue(n[i], hasBoundVars);
+ Debug("model-getvalue-debug") << " " << n << "[" << i << "] is " << ret << std::endl;
children.push_back(ret);
}
ret = Rewriter::rewrite(NodeManager::currentNM()->mkNode(n.getKind(), children));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback