summaryrefslogtreecommitdiff
path: root/src/theory/strings/inference_manager.cpp
diff options
context:
space:
mode:
authormudathirmahgoub <mudathirmahgoub@gmail.com>2021-01-08 11:07:32 -0600
committerGitHub <noreply@github.com>2021-01-08 11:07:32 -0600
commita7d214409def441dcf072dd483f31823fd2620ed (patch)
tree6d3deba5bec13f6d25ace9c3e4bda9600e045401 /src/theory/strings/inference_manager.cpp
parent2958e98eff88ce14aefcdeee3c6ec579fcc2bb1d (diff)
Rename getAntecedent to getPremises (#5754)
Changes: renamed d_new_skolem to d_newSkolem renamed d_ant to d_premises (antecedent is usually used with consequent, and premise is used with conclusion)
Diffstat (limited to 'src/theory/strings/inference_manager.cpp')
-rw-r--r--src/theory/strings/inference_manager.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/theory/strings/inference_manager.cpp b/src/theory/strings/inference_manager.cpp
index b982f24a1..05937cf56 100644
--- a/src/theory/strings/inference_manager.cpp
+++ b/src/theory/strings/inference_manager.cpp
@@ -143,7 +143,7 @@ bool InferenceManager::sendInference(const std::vector<Node>& exp,
ii.d_id = infer;
ii.d_idRev = isRev;
ii.d_conc = eq;
- ii.d_ant = exp;
+ ii.d_premises = exp;
ii.d_noExplain = noExplain;
sendInference(ii, asLemma);
return true;
@@ -170,10 +170,9 @@ void InferenceManager::sendInference(InferInfo& ii, bool asLemma)
if (ii.isConflict())
{
Trace("strings-infer-debug") << "...as conflict" << std::endl;
- Trace("strings-lemma") << "Strings::Conflict: " << ii.d_ant << " by "
+ Trace("strings-lemma") << "Strings::Conflict: " << ii.d_premises << " by "
<< ii.d_id << std::endl;
- Trace("strings-conflict") << "CONFLICT: inference conflict " << ii.d_ant
- << " by " << ii.d_id << std::endl;
+ Trace("strings-conflict") << "CONFLICT: inference conflict " << ii.d_premises << " by " << ii.d_id << std::endl;
++(d_statistics.d_conflictsInfer);
// process the conflict immediately
processConflict(ii);
@@ -190,7 +189,7 @@ void InferenceManager::sendInference(InferInfo& ii, bool asLemma)
std::vector<Node> vars;
std::vector<Node> subs;
std::vector<Node> unproc;
- for (const Node& ac : ii.d_ant)
+ for (const Node& ac : ii.d_premises)
{
d_termReg.inferSubstitutionProxyVars(ac, vars, subs, unproc);
}
@@ -306,7 +305,7 @@ void InferenceManager::processConflict(const InferInfo& ii)
d_ipc->notifyFact(ii);
}
// make the trust node
- TrustNode tconf = mkConflictExp(ii.d_ant, d_ipc.get());
+ TrustNode tconf = mkConflictExp(ii.d_premises, d_ipc.get());
Assert(tconf.getKind() == TrustNodeKind::CONFLICT);
Trace("strings-assert") << "(assert (not " << tconf.getNode()
<< ")) ; conflict " << ii.d_id << std::endl;
@@ -329,13 +328,13 @@ bool InferenceManager::processFact(InferInfo& ii)
{
facts.push_back(ii.d_conc);
}
- Trace("strings-assert") << "(assert (=> " << ii.getAntecedent() << " "
+ Trace("strings-assert") << "(assert (=> " << ii.getPremises() << " "
<< ii.d_conc << ")) ; fact " << ii.d_id << std::endl;
Trace("strings-lemma") << "Strings::Fact: " << ii.d_conc << " from "
- << ii.getAntecedent() << " by " << ii.d_id
+ << ii.getPremises() << " by " << ii.d_id
<< std::endl;
std::vector<Node> exp;
- for (const Node& ec : ii.d_ant)
+ for (const Node& ec : ii.d_premises)
{
utils::flattenOp(AND, ec, exp);
}
@@ -378,7 +377,7 @@ bool InferenceManager::processLemma(InferInfo& ii)
Assert(!ii.isConflict());
// set up the explanation and no-explanation
std::vector<Node> exp;
- for (const Node& ec : ii.d_ant)
+ for (const Node& ec : ii.d_premises)
{
utils::flattenOp(AND, ec, exp);
}
@@ -413,7 +412,7 @@ bool InferenceManager::processLemma(InferInfo& ii)
// (lazily), since this is the moment when we have decided to process the
// inference.
for (const std::pair<const LengthStatus, std::vector<Node> >& sks :
- ii.d_new_skolem)
+ ii.d_newSkolem)
{
for (const Node& n : sks.second)
{
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback