summaryrefslogtreecommitdiff
path: root/src/prop/bvminisat
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-05-23 06:53:06 -0700
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-05-23 08:53:06 -0500
commit4c2138a14c4abba2431bc8ba51359d3a565baf05 (patch)
tree4bf45363b8b76895138669cd8097c2be49f02f80 /src/prop/bvminisat
parent8de9510b8aa818f555294ebe88d9733cc10ff8b9 (diff)
Remove ProofProxy (#1965)
Diffstat (limited to 'src/prop/bvminisat')
-rw-r--r--src/prop/bvminisat/core/Solver.cc19
-rw-r--r--src/prop/bvminisat/core/SolverTypes.h8
2 files changed, 16 insertions, 11 deletions
diff --git a/src/prop/bvminisat/core/Solver.cc b/src/prop/bvminisat/core/Solver.cc
index 885e429f0..8d71e2f65 100644
--- a/src/prop/bvminisat/core/Solver.cc
+++ b/src/prop/bvminisat/core/Solver.cc
@@ -1412,7 +1412,7 @@ void Solver::relocAll(ClauseAllocator& to)
// printf(" >>> RELOCING: %s%d\n", sign(p)?"-":"", var(p)+1);
vec<Watcher>& ws = watches[p];
for (int j = 0; j < ws.size(); j++)
- ca.reloc(ws[j].cref, to, d_bvp ? d_bvp->getSatProof()->getProxy() : NULL);
+ ca.reloc(ws[j].cref, to, d_bvp ? d_bvp->getSatProof() : NULL);
}
// All reasons:
@@ -1421,19 +1421,19 @@ void Solver::relocAll(ClauseAllocator& to)
Var v = var(trail[i]);
if (reason(v) != CRef_Undef && (ca[reason(v)].reloced() || locked(ca[reason(v)])))
- ca.reloc(vardata[v].reason, to, d_bvp ? d_bvp->getSatProof()->getProxy() : NULL);
+ ca.reloc(vardata[v].reason, to, d_bvp ? d_bvp->getSatProof() : NULL);
}
// All learnt:
//
for (int i = 0; i < learnts.size(); i++)
- ca.reloc(learnts[i], to, d_bvp ? d_bvp->getSatProof()->getProxy() : NULL);
+ ca.reloc(learnts[i], to, d_bvp ? d_bvp->getSatProof() : NULL);
// All original:
//
for (int i = 0; i < clauses.size(); i++)
- ca.reloc(clauses[i], to, d_bvp ? d_bvp->getSatProof()->getProxy() : NULL);
-
+ ca.reloc(clauses[i], to, d_bvp ? d_bvp->getSatProof() : NULL);
+
if(d_bvp){ d_bvp->getSatProof()->finishUpdateCRef(); }
}
@@ -1451,7 +1451,9 @@ void Solver::garbageCollect()
to.moveTo(ca);
}
-void ClauseAllocator::reloc(CRef& cr, ClauseAllocator& to, CVC4::BVProofProxy* proxy)
+void ClauseAllocator::reloc(CRef& cr,
+ ClauseAllocator& to,
+ CVC4::TSatProof<Solver>* proof)
{
CRef old = cr; // save the old reference
@@ -1460,8 +1462,9 @@ void ClauseAllocator::reloc(CRef& cr, ClauseAllocator& to, CVC4::BVProofProxy* p
cr = to.alloc(c, c.learnt());
c.relocate(cr);
- if (proxy) {
- proxy->updateCRef(old, cr);
+ if (proof)
+ {
+ proof->updateCRef(old, cr);
}
// Copy extra data-fields:
diff --git a/src/prop/bvminisat/core/SolverTypes.h b/src/prop/bvminisat/core/SolverTypes.h
index 1fd7ac5a7..302db104f 100644
--- a/src/prop/bvminisat/core/SolverTypes.h
+++ b/src/prop/bvminisat/core/SolverTypes.h
@@ -33,8 +33,8 @@ namespace CVC4 {
namespace BVMinisat {
class Solver;
}
-template <class Solver> class ProofProxy;
-typedef ProofProxy<BVMinisat::Solver> BVProofProxy;
+template <class Solver>
+class TSatProof;
}
namespace CVC4 {
@@ -256,7 +256,9 @@ class ClauseAllocator : public RegionAllocator<uint32_t>
RegionAllocator<uint32_t>::free(clauseWord32Size(c.size(), c.has_extra()));
}
- void reloc(CRef& cr, ClauseAllocator& to, CVC4::BVProofProxy* proxy = NULL);
+ void reloc(CRef& cr,
+ ClauseAllocator& to,
+ CVC4::TSatProof<Solver>* proof = NULL);
};
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback