3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00

fix issue #203: domain range was one too large

Signed-off-by: unknown <nbjorner@nikolaj-z.redmond.corp.microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-08-24 15:55:40 -07:00
parent 4ce80f1aed
commit ee5f1ad6b6

View file

@ -241,7 +241,8 @@ namespace smt {
app* max_value(sort* s) {
uint64 sz;
VERIFY(u().try_get_size(s, sz));
return mk_bv_constant(sz, s);
SASSERT(sz > 0);
return mk_bv_constant(sz-1, s);
}
void mk_lt(app* x, app* y) {