mirror of
https://github.com/Z3Prover/z3
synced 2025-05-03 22:05:45 +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
|
@ -643,7 +643,7 @@ public:
|
|||
|
||||
family_id get_array_fid(cmd_context & ctx) {
|
||||
if (m_array_fid == null_family_id) {
|
||||
m_array_fid = ctx.m().get_family_id("array");
|
||||
m_array_fid = ctx.m().mk_family_id("array");
|
||||
}
|
||||
return m_array_fid;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -765,7 +765,7 @@ pdecl_manager::pdecl_manager(ast_manager & m):
|
|||
m_allocator(m.get_allocator()),
|
||||
m_new_dt_eh(0) {
|
||||
m_list = 0;
|
||||
m_datatype_fid = m.get_family_id("datatype");
|
||||
m_datatype_fid = m.mk_family_id("datatype");
|
||||
}
|
||||
|
||||
pdecl_manager::~pdecl_manager() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue