mirror of
https://github.com/Z3Prover/z3
synced 2025-05-07 07:45:46 +00:00
add code review to constraint
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ef297ced13
commit
7ea1bf12b6
4 changed files with 32 additions and 16 deletions
|
@ -259,7 +259,7 @@ namespace polysat {
|
|||
if (lit.var() != var)
|
||||
m_literals[j++] = lit;
|
||||
m_literals.shrink(j);
|
||||
for (sat::literal lit : other.literals())
|
||||
for (sat::literal lit : other)
|
||||
if (lit.var() != var)
|
||||
m_literals.push_back(lit);
|
||||
return true;
|
||||
|
@ -267,7 +267,7 @@ namespace polysat {
|
|||
|
||||
std::ostream& clause::display(std::ostream& out) const {
|
||||
bool first = true;
|
||||
for (auto lit : literals()) {
|
||||
for (auto lit : *this) {
|
||||
if (first)
|
||||
first = false;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue