mirror of
https://github.com/Z3Prover/z3
synced 2026-06-29 03:48:51 +00:00
have it create string ranges
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ee6e4e2821
commit
f614721a92
2 changed files with 3 additions and 3 deletions
|
|
@ -130,8 +130,8 @@ namespace seq {
|
|||
// range bounds. This matches the shape used elsewhere in
|
||||
// seq_rewriter and avoids creating duplicate AST nodes with
|
||||
// different ids for semantically identical ranges.
|
||||
expr_ref slo(u.str.mk_unit(u.str.mk_char(lo)), m);
|
||||
expr_ref shi(u.str.mk_unit(u.str.mk_char(hi)), m);
|
||||
expr_ref slo(u.str.mk_string(zstring(lo)), m);
|
||||
expr_ref shi(u.str.mk_string(zstring(hi)), m);
|
||||
return expr_ref(u.re.mk_range(slo, shi), m);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -422,7 +422,7 @@ func_decl* seq_decl_plugin::mk_func_decl(decl_kind k, unsigned num_parameters, p
|
|||
case OP_STRING_LE:
|
||||
case OP_STRING_IS_DIGIT:
|
||||
case OP_STRING_TO_CODE:
|
||||
case OP_STRING_FROM_CODE:
|
||||
case OP_STRING_FROM_CODE:
|
||||
match(*m_sigs[k], arity, domain, range, rng);
|
||||
return m.mk_func_decl(m_sigs[k]->m_name, arity, domain, rng, func_decl_info(m_family_id, k));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue