3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

Fixed parsing of | and \ (#6975)

* Give users ability to see if propagation failed

* Skip propagations in the new core if they are already satisfied

* Fix registration in final

* Don't make it too complicated...

* Fixed next_split when called in pop
Made delay_units available even without quantifiers

* Missing push calls before "decide"-callback

* Fixed parsing of | and \

* Unit-test for parsing bug
This commit is contained in:
Clemens Eisenhofer 2023-10-30 20:30:23 +01:00 committed by GitHub
parent 938a89e197
commit 996b844cde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 74 additions and 2 deletions

View file

@ -106,8 +106,13 @@ namespace smt2 {
TRACE("scanner", tout << "new quoted symbol: " << m_id << "\n";);
return SYMBOL_TOKEN;
}
escape = (c == '\\');
m_string.push_back(c);
else if (c != '|' && c != '\\' && escape) {
m_string.push_back('\\');
}
escape = (c == '\\') && !escape;
if (!escape)
m_string.push_back(c);
next();
}
}