3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-17 18:43:45 +00:00

Add comments for large exponent handling

Add comments for handling large exponents in seq_model.cpp
This commit is contained in:
Nikolaj Bjorner 2026-03-14 10:28:21 -07:00 committed by GitHub
parent ba7b0392fe
commit aa5267cb9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -258,6 +258,9 @@ namespace smt {
zstring result(buf.size(), buf.data());
return expr_ref(m_seq.str.mk_string(result), m);
}
// NSB review: just return an expression of the form:
// mk_power(base_val, a.mk_int(n_val)) for large exponents
// Fallback: cap exponent to avoid divergence
n_val = POWER_EXPAND_LIMIT;
}