3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

fix intblast is_bounded (#7163)

This commit is contained in:
Jakob Rath 2024-03-14 16:48:38 +01:00 committed by GitHub
parent 0b3bbc2972
commit 5704e8d154
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -467,7 +467,7 @@ namespace intblast {
bool solver::is_bounded(expr* x, rational const& N) {
return any_of(m_vars, [&](expr* v) {
return is_translated(v) && translated(v) == x && bv.get_bv_size(v) <= N;
return is_translated(v) && translated(v) == x && bv_size(v) <= N;
});
}
@ -536,7 +536,7 @@ namespace intblast {
* Perform simplifications that are claimed sound when the bit-vector interpretations of
* mod/div always guard the mod and dividend to be non-zero.
* Potentially shady area is for arithmetic expressions created by int2bv.
* They will be guarded by a modulus which dose not disappear.
* They will be guarded by a modulus which does not disappear.
*/
expr* solver::amod(expr* bv_expr, expr* x, rational const& N) {
rational v;