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:
parent
3e8c7d85aa
commit
e412d6175d
3 changed files with 18 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue