I'm looking through the Z3.Arithmetic
module, and I do not see any mk_modulus
or similar function provided. Is there a binding for the mod
operator in Z3?
I can internally build a term (x - ((x / 2) * 2))
, but if there's a binding for mod
, I would prefer it.
You're looking for the mk_mod
function, found here:
There's also mk_rem
, right next to mk_mod
, if that's what you'd need as well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.