summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/quantifiers')
-rw-r--r--src/theory/quantifiers/instantiate.cpp16
-rw-r--r--src/theory/quantifiers/instantiate.h8
2 files changed, 21 insertions, 3 deletions
diff --git a/src/theory/quantifiers/instantiate.cpp b/src/theory/quantifiers/instantiate.cpp
index deed76fc9..c9048fc95 100644
--- a/src/theory/quantifiers/instantiate.cpp
+++ b/src/theory/quantifiers/instantiate.cpp
@@ -783,7 +783,7 @@ Node Instantiate::getInstantiatedConjunction(Node q)
return ret;
}
-void Instantiate::debugPrint()
+void Instantiate::debugPrint(std::ostream& out)
{
// debug information
if (Trace.isOn("inst-per-quant-round"))
@@ -795,6 +795,20 @@ void Instantiate::debugPrint()
d_temp_inst_debug[i.first] = 0;
}
}
+ if (options::debugInst())
+ {
+ bool isFull = options::printInstFull();
+ for (std::pair<const Node, uint32_t>& i : d_temp_inst_debug)
+ {
+ std::stringstream ss;
+ if (!printQuant(i.first, ss, isFull))
+ {
+ continue;
+ }
+ out << "(num-instantiations " << ss.str() << " " << i.second << ")"
+ << std::endl;
+ }
+ }
}
void Instantiate::debugPrintModel()
diff --git a/src/theory/quantifiers/instantiate.h b/src/theory/quantifiers/instantiate.h
index 630efe72c..16ff1f2c3 100644
--- a/src/theory/quantifiers/instantiate.h
+++ b/src/theory/quantifiers/instantiate.h
@@ -202,8 +202,12 @@ class Instantiate : public QuantifiersUtil
Node getTermForType(TypeNode tn);
//--------------------------------------end general utilities
- /** debug print, called once per instantiation round. */
- void debugPrint();
+ /**
+ * Debug print, called once per instantiation round. This prints
+ * instantiations added this round to trace inst-per-quant-round, if
+ * applicable, and prints to out if the option debug-inst is enabled.
+ */
+ void debugPrint(std::ostream& out);
/** debug print model, called once, before we terminate with sat/unknown. */
void debugPrintModel();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback