mirror of
https://github.com/Z3Prover/z3
synced 2025-05-14 03:04:44 +00:00
split into parts, add stats
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
21baa2a70a
commit
57486f0b3d
7 changed files with 215 additions and 112 deletions
30
src/math/polysat/constraint.cpp
Normal file
30
src/math/polysat/constraint.cpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*++
|
||||
Copyright (c) 2021 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
polysat constraints
|
||||
|
||||
Author:
|
||||
|
||||
Nikolaj Bjorner (nbjorner) 2021-03-19
|
||||
|
||||
--*/
|
||||
|
||||
#include "math/polysat/constraint.h"
|
||||
|
||||
namespace polysat {
|
||||
|
||||
std::ostream& constraint::display(std::ostream& out) const {
|
||||
switch (kind()) {
|
||||
case ckind_t::eq_t:
|
||||
return out << p() << " == 0";
|
||||
case ckind_t::ule_t:
|
||||
return out << lhs() << " <=u " << rhs();
|
||||
case ckind_t::sle_t:
|
||||
return out << lhs() << " <=s " << rhs();
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue