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:
parent
aa5267cb9c
commit
9c36e9ce62
1 changed files with 3 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue