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

test hilbert-basis with fdds and checked integers

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-03-26 17:33:44 -07:00
commit c9109132da
15 changed files with 55 additions and 36 deletions

View file

@ -37,7 +37,8 @@ class bit_vector {
}
static unsigned num_words(unsigned num_bits) {
return (num_bits % 32) == 0 ? (num_bits / 32) : ((num_bits / 32) + 1);
// return (num_bits % 32) == 0 ? (num_bits / 32) : ((num_bits / 32) + 1);
return (num_bits + 31) / 32;
}
void expand_to(unsigned new_capacity);