3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-07 07:45:46 +00:00

add ovfl constraint

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-12-09 09:05:23 -08:00
parent 6ddca4091a
commit 0dcaf9b9f9
5 changed files with 155 additions and 1 deletions

View file

@ -18,6 +18,7 @@ Author:
#include "math/polysat/log.h"
#include "math/polysat/log_helper.h"
#include "math/polysat/ule_constraint.h"
#include "math/polysat/mul_ovfl_constraint.h"
namespace polysat {
@ -241,6 +242,14 @@ namespace polysat {
return *dynamic_cast<ule_constraint const*>(this);
}
mul_ovfl_constraint& constraint::to_mul_ovfl() {
return *dynamic_cast<mul_ovfl_constraint*>(this);
}
mul_ovfl_constraint const& constraint::to_mul_ovfl() const {
return *dynamic_cast<mul_ovfl_constraint const*>(this);
}
std::string constraint::bvar2string() const {
std::stringstream out;
out << " (b";