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

Revise comments for clarity on sort usage

Updated comments to reflect review suggestions regarding the use of the sort of 'n'.
This commit is contained in:
Nikolaj Bjorner 2026-03-14 10:30:12 -07:00 committed by GitHub
parent aa5267cb9c
commit 9c36e9ce62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,6 +158,7 @@ namespace smt {
if (!n)
return expr_ref(m);
// NSB review: use the sort of n
if (n->is_empty())
return expr_ref(m_seq.str.mk_empty(m_seq.str.mk_string_sort()), m);
@ -228,6 +229,8 @@ namespace smt {
exp_val = rational(0);
// Build the repeated string: base^exp_val
// NSB review: use the sort of n instead of mk_string_sort()
if (exp_val.is_zero())
return expr_ref(m_seq.str.mk_empty(m_seq.str.mk_string_sort()), m);
if (exp_val.is_one())