3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-11 02:08:07 +00:00

initialize glue in constructor to ensure it gets set

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-11-15 15:57:07 -08:00
parent f7e14b3283
commit d8a2e9d008
4 changed files with 12 additions and 16 deletions

View file

@ -1762,11 +1762,8 @@ namespace sat {
\brief Compute the psm of all learned clauses.
*/
void solver::save_psm() {
clause_vector::iterator it = m_learned.begin();
clause_vector::iterator end = m_learned.end();
for (; it != end; ++it) {
clause & c = *(*it);
c.set_psm(psm(c));
for (clause* cp : m_learned) {
cp->set_psm(psm(*cp));
}
}