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

quot_rem needs additional constraint: quot <= a

This commit is contained in:
Jakob Rath 2022-01-12 13:44:30 +01:00
parent e0e03b3fc5
commit 3895d8d6bb
2 changed files with 37 additions and 0 deletions

View file

@ -132,6 +132,7 @@ namespace polysat {
add_eq(b * quot + rem - a);
add_noovfl(b, quot);
add_clause(eq(b), ult(rem, b), false);
add_ule(quot, a);
return std::tuple<pdd, pdd>(quot, rem);
}