mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
canonicalize encoding of string constants/symbols
This commit is contained in:
parent
85e7b18451
commit
b09035565a
|
@ -842,7 +842,9 @@ void seq_decl_plugin::get_sort_names(svector<builtin_name> & sort_names, symbol
|
||||||
}
|
}
|
||||||
|
|
||||||
app* seq_decl_plugin::mk_string(symbol const& s) {
|
app* seq_decl_plugin::mk_string(symbol const& s) {
|
||||||
parameter param(s);
|
zstring canonStr(s.bare_str());
|
||||||
|
symbol canonSym(canonStr.encode().c_str());
|
||||||
|
parameter param(canonSym);
|
||||||
func_decl* f = m_manager->mk_const_decl(m_stringc_sym, m_string,
|
func_decl* f = m_manager->mk_const_decl(m_stringc_sym, m_string,
|
||||||
func_decl_info(m_family_id, OP_STRING_CONST, 1, ¶m));
|
func_decl_info(m_family_id, OP_STRING_CONST, 1, ¶m));
|
||||||
return m_manager->mk_const(f);
|
return m_manager->mk_const(f);
|
||||||
|
|
Loading…
Reference in a new issue