3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 23:05:46 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-09-16 10:10:50 +01:00
parent 689c5b4e12
commit c25fd71bf4
5 changed files with 44 additions and 35 deletions

View file

@ -11,6 +11,7 @@ Author:
--*/
#include "math/polysat/boolean.h"
#include "math/polysat/clause.h"
#include "math/polysat/log.h"
namespace polysat {
@ -69,10 +70,10 @@ namespace polysat {
std::ostream& bool_var_manager::display(std::ostream& out) const {
for (sat::bool_var v = 0; v < size(); ++v) {
sat::literal lit{v};
sat::literal lit(v);
if (value(lit) == l_true)
out << " " << lit;
if (value(lit) == l_false)
else if (value(lit) == l_false)
out << " " << ~lit;
}
return out;