3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-30 13:40:59 -07:00
parent 53b5ca3c2b
commit 04e51ffcb5

View file

@ -545,7 +545,7 @@ namespace smt {
if (coeffs.empty()) {
return mk_num(n, w);
}
if (coeffs.size() == 1 && coeffs[0].second.is_one()) {
if (coeffs.size() == 1 && coeffs[0].second.is_one() && ctx.e_internalized(n)) {
return coeffs[0].first;
}
if (coeffs.size() == 2) {