mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
sanity check parameters #6737
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
230306ddfc
commit
621f1f8a85
1 changed files with 4 additions and 1 deletions
|
@ -249,7 +249,10 @@ extern "C" {
|
|||
expr_abstract(mk_c(c)->m(), 0, num_bound, bound_asts.data(), pat, result);
|
||||
SASSERT(result.get()->get_kind() == AST_APP);
|
||||
pinned.push_back(result.get());
|
||||
SASSERT(mk_c(c)->m().is_pattern(result.get()));
|
||||
if (!mk_c(c)->m().is_pattern(result.get())) {
|
||||
SET_ERROR_CODE(Z3_INVALID_ARG, "invalid pattern");
|
||||
RETURN_Z3(nullptr);
|
||||
}
|
||||
_patterns.push_back(of_pattern(result.get()));
|
||||
}
|
||||
svector<Z3_ast> _no_patterns;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue