3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

add pb capabilities

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-11-09 16:19:49 -08:00
parent 3e8c7d85aa
commit e412d6175d
3 changed files with 18 additions and 8 deletions

View file

@ -107,6 +107,9 @@ bool card_util::is_le(app* a, int& k) const {
}
int card_util::get_le_coeff(app* a, unsigned index) {
if (is_at_most_k(a)) {
return 1;
}
SASSERT(is_le(a));
SASSERT(1 + index < a->get_decl()->get_num_parameters());
return a->get_decl()->get_parameter(index + 1).get_int();