mirror of
https://github.com/Z3Prover/z3
synced 2025-06-29 01:18:45 +00:00
add simplification for equalities between itos and constant strings, Issue #589
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
bdbf1c9bf4
commit
d5ee7e24bc
4 changed files with 60 additions and 11 deletions
|
@ -250,7 +250,6 @@ public:
|
|||
}
|
||||
|
||||
bool is_string(expr const* n, zstring& s) const;
|
||||
bool is_char(expr* n, zstring& s) const;
|
||||
|
||||
bool is_empty(expr const* n) const { symbol s;
|
||||
return is_app_of(n, m_fid, OP_SEQ_EMPTY) || (is_string(n, s) && !s.is_numerical() && *s.bare_str() == 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue