3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-12-01 09:39:05 +00:00

patch definitions, add pretty print support

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-10-13 22:37:05 +02:00
parent fc3bd95cc2
commit 1b9f27a798
7 changed files with 56 additions and 16 deletions

View file

@ -1797,8 +1797,12 @@ namespace smt2 {
void check_qualifier(expr * t, bool has_as) {
if (has_as) {
sort * s = sort_stack().back();
if (s != t->get_sort())
throw parser_exception("invalid qualified identifier, sort mismatch");
if (s != t->get_sort()) {
std::ostringstream str;
str << "sort mismatch in qualified identifier, expected: " << mk_pp(s, m())
<< ", got: " << mk_pp(t->get_sort(), m());
throw parser_exception(str.str());
}
sort_stack().pop_back();
}
}