3
0
Fork 0
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:
Jakob Rath 2021-04-14 19:29:58 +02:00 committed by GitHub
parent 3730a0373d
commit 8a260d89cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 0 deletions

View 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() << ")";
}
}
}