mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +00:00
parent
7f8738dd85
commit
330b3cc8d6
3 changed files with 22 additions and 11 deletions
|
@ -236,3 +236,13 @@ void fail_if_model_generation(char const * tactic_name, goal_ref const & in) {
|
|||
throw tactic_exception(std::move(msg));
|
||||
}
|
||||
}
|
||||
|
||||
void fail_if_has_quantifiers(char const* tactic_name, goal_ref const& g) {
|
||||
for (unsigned i = 0; i < g->size(); ++i)
|
||||
if (has_quantifiers(g->form(i))) {
|
||||
std::string msg = tactic_name;
|
||||
msg += " does not apply to quantified goals";
|
||||
throw tactic_exception(std::move(msg));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue