mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 04:26:00 +00:00
parent
a6829ea9d0
commit
925867dc3e
2 changed files with 7 additions and 1 deletions
|
@ -34,6 +34,12 @@ bool is_smt2_quoted_symbol(char const * s) {
|
|||
if ('0' <= s[0] && s[0] <= '9')
|
||||
return true;
|
||||
unsigned len = static_cast<unsigned>(strlen(s));
|
||||
if (len > 2 && s[0] == '|' && s[len-1] == '|') {
|
||||
for (unsigned i = 1; i + 1 < len; i++)
|
||||
if (!is_smt2_simple_symbol_char(s[i]))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
for (unsigned i = 0; i < len; i++)
|
||||
if (!is_smt2_simple_symbol_char(s[i]))
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue