From 04e51ffcb578596d311fafac609f2a32d04d6392 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Mon, 30 Mar 2020 13:40:59 -0700 Subject: [PATCH] fix #3569 Signed-off-by: Nikolaj Bjorner --- src/smt/theory_utvpi_def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smt/theory_utvpi_def.h b/src/smt/theory_utvpi_def.h index 54d544b6f..a78fff1f8 100644 --- a/src/smt/theory_utvpi_def.h +++ b/src/smt/theory_utvpi_def.h @@ -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) {