3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-23 14:23:40 +00:00
This commit is contained in:
Nikolaj Bjorner 2020-05-16 17:10:58 -07:00
parent aaf05f18ab
commit cd64967706
2 changed files with 4 additions and 5 deletions

View file

@ -1512,12 +1512,11 @@ namespace smt2 {
f = m_ctx.find_func_decl(C, 0, nullptr, vars.size(), nullptr, srt);
}
catch (cmd_exception &) {
if (!args.empty()) {
if (!vars.empty()) {
throw;
}
}
if (!f && !args.empty()) {
}
if (!f && !vars.empty()) {
throw parser_exception("expecting a constructor that has been declared");
}
if (!f) {