mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
Make ast_manager::get_family_id(symbol const &) side-effect free. The version with side-effects is now called ast_manager::mk_family_id
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3ddb1a85f1
commit
d92efeb0c5
56 changed files with 127 additions and 108 deletions
|
@ -1386,7 +1386,7 @@ void cmd_context::set_diagnostic_stream(char const * name) {
|
|||
struct contains_array_op_proc {
|
||||
struct found {};
|
||||
family_id m_array_fid;
|
||||
contains_array_op_proc(ast_manager & m):m_array_fid(m.get_family_id("array")) {}
|
||||
contains_array_op_proc(ast_manager & m):m_array_fid(m.mk_family_id("array")) {}
|
||||
void operator()(var * n) {}
|
||||
void operator()(app * n) {
|
||||
if (n->get_family_id() != m_array_fid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue