mirror of
https://github.com/Z3Prover/z3
synced 2025-05-03 05:47:01 +00:00
32 lines
661 B
C++
32 lines
661 B
C++
/*++
|
|
Copyright (c) 2021 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
polysat justification
|
|
|
|
Author:
|
|
|
|
Nikolaj Bjorner (nbjorner) 2021-03-19
|
|
Jakob Rath 2021-04-6
|
|
|
|
--*/
|
|
|
|
#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();
|
|
case justification_k::propagation:
|
|
return out << "propagation @ " << level();
|
|
}
|
|
UNREACHABLE();
|
|
return out;
|
|
}
|
|
|
|
}
|