mirror of
https://github.com/Z3Prover/z3
synced 2025-05-04 14:25:46 +00:00
Small polysat fixes (#5183)
* Add some display functions * Add new variables to free vars
This commit is contained in:
parent
3730a0373d
commit
8a260d89cd
4 changed files with 48 additions and 0 deletions
29
src/math/polysat/justification.cpp
Normal file
29
src/math/polysat/justification.cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*++
|
||||
Copyright (c) 2021 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
polysat justification
|
||||
|
||||
Author:
|
||||
|
||||
Nikolaj Bjorner (nbjorner) 2021-03-19
|
||||
|
||||
--*/
|
||||
|
||||
#include "math/polysat/justification.h"
|
||||
|
||||
namespace polysat {
|
||||
|
||||
std::ostream& justification::display(std::ostream& out) const {
|
||||
switch (kind()) {
|
||||
case justification_k::unassigned:
|
||||
return out << "unassigned";
|
||||
case justification_k::decision:
|
||||
return out << "decision (level " << level() << ")";
|
||||
case justification_k::propagation:
|
||||
return out << "propagation (level " << level() << ")";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue