mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
api for accessing dl_rule name
This commit is contained in:
parent
7840f6cead
commit
50f794c4f5
|
@ -298,7 +298,7 @@ namespace datalog {
|
||||||
|
|
||||||
static unsigned get_obj_size(unsigned n) { return sizeof(rule) + n * sizeof(app *); }
|
static unsigned get_obj_size(unsigned n) { return sizeof(rule) + n * sizeof(app *); }
|
||||||
|
|
||||||
rule() : m_ref_cnt(0) {}
|
rule() : m_ref_cnt(0), m_name(symbol::null) {}
|
||||||
~rule() {}
|
~rule() {}
|
||||||
|
|
||||||
void deallocate(ast_manager & m);
|
void deallocate(ast_manager & m);
|
||||||
|
@ -355,7 +355,12 @@ namespace datalog {
|
||||||
|
|
||||||
void display(context & ctx, std::ostream & out) const;
|
void display(context & ctx, std::ostream & out) const;
|
||||||
|
|
||||||
symbol const& name() const { return m_name; }
|
/**
|
||||||
|
\brief Return the name(s) associated with this rule. Plural for preprocessed (e.g. obtained by inlining) rules.
|
||||||
|
|
||||||
|
This possibly returns a ";"-separated list of names.
|
||||||
|
*/
|
||||||
|
symbol const& name() const { return m_name; } ;
|
||||||
|
|
||||||
unsigned hash() const;
|
unsigned hash() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue