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

initial overflow test

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-12-09 14:39:00 -08:00
parent 99e2247ccb
commit a4fc63c542
6 changed files with 47 additions and 8 deletions

View file

@ -202,6 +202,9 @@ namespace polysat {
return ~ule(b, a);
}
signed_constraint constraint_manager::mul_ovfl(pdd const& a, pdd const& b) {
return { dedup(alloc(mul_ovfl_constraint, *this, a, b)), true };
}
// To do signed comparison of bitvectors, flip the msb and do unsigned comparison: