mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
address accessor inconsistencies between - and from #1506
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
45b6e0998a
commit
ce1b135ec3
6 changed files with 44 additions and 14 deletions
|
@ -797,6 +797,7 @@ namespace datatype {
|
|||
if (m_constructor2recognizer.find(con, d))
|
||||
return d;
|
||||
sort * datatype = con->get_range();
|
||||
#if 0
|
||||
def const& dd = get_def(datatype);
|
||||
symbol r;
|
||||
for (constructor const* c : dd) {
|
||||
|
@ -811,6 +812,14 @@ namespace datatype {
|
|||
m_asts.push_back(d);
|
||||
m_constructor2recognizer.insert(con, d);
|
||||
return d;
|
||||
#else
|
||||
parameter ps[1] = { parameter(con)};
|
||||
d = m.mk_func_decl(m_family_id, OP_DT_IS, 1, ps, 1, &datatype);
|
||||
m_constructor2recognizer.insert(con, d);
|
||||
m_asts.push_back(d);
|
||||
m_asts.push_back(con);
|
||||
return d;
|
||||
#endif
|
||||
}
|
||||
|
||||
func_decl * util::get_recognizer_constructor(func_decl * recognizer) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue