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:
parent
e0e03b3fc5
commit
3895d8d6bb
2 changed files with 37 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue