mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
na
This commit is contained in:
parent
93004a9d49
commit
1a642b4311
2 changed files with 18 additions and 18 deletions
|
@ -340,13 +340,15 @@ namespace datatype {
|
|||
bool is_is(func_decl * f) const { return is_decl_of(f, fid(), OP_DT_IS); }
|
||||
bool is_accessor(func_decl * f) const { return is_decl_of(f, fid(), OP_DT_ACCESSOR); }
|
||||
bool is_update_field(func_decl * f) const { return is_decl_of(f, fid(), OP_DT_UPDATE_FIELD); }
|
||||
bool is_constructor(app * f) const { return is_app_of(f, fid(), OP_DT_CONSTRUCTOR); }
|
||||
bool is_constructor(expr* e) const { return is_app(e) && is_constructor(to_app(e)); }
|
||||
bool is_recognizer0(app * f) const { return is_app_of(f, fid(), OP_DT_RECOGNISER);}
|
||||
bool is_is(app * f) const { return is_app_of(f, fid(), OP_DT_IS);}
|
||||
bool is_is(expr * e) const { return is_app(e) && is_is(to_app(e)); }
|
||||
bool is_recognizer(app * f) const { return is_recognizer0(f) || is_is(f); }
|
||||
bool is_accessor(expr * e) const { return is_app(e) && is_app_of(to_app(e), fid(), OP_DT_ACCESSOR); }
|
||||
bool is_constructor(app const * f) const { return is_app_of(f, fid(), OP_DT_CONSTRUCTOR); }
|
||||
bool is_constructor(expr const * e) const { return is_app(e) && is_constructor(to_app(e)); }
|
||||
bool is_recognizer0(app const* f) const { return is_app_of(f, fid(), OP_DT_RECOGNISER);}
|
||||
bool is_is(app const * f) const { return is_app_of(f, fid(), OP_DT_IS);}
|
||||
bool is_is(expr const * e) const { return is_app(e) && is_is(to_app(e)); }
|
||||
bool is_recognizer(expr const * f) const { return is_app(f) && is_recognizer0(to_app(f)) || is_is(to_app(f)); }
|
||||
MATCH_UNARY(is_recognizer);
|
||||
bool is_accessor(expr const* e) const { return is_app(e) && is_app_of(to_app(e), fid(), OP_DT_ACCESSOR); }
|
||||
MATCH_UNARY(is_accessor);
|
||||
bool is_update_field(app * f) const { return is_app_of(f, fid(), OP_DT_UPDATE_FIELD); }
|
||||
app* mk_is(func_decl * c, expr *f);
|
||||
ptr_vector<func_decl> const * get_datatype_constructors(sort * ty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue