mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 20:46:01 +00:00
parent
cb136418d5
commit
8dac9b7b94
6 changed files with 14 additions and 17 deletions
|
@ -254,6 +254,7 @@ namespace datalog {
|
|||
|
||||
void set_output_predicate(func_decl * pred) { m_refs.push_back(pred); m_output_preds.insert(pred); }
|
||||
bool is_output_predicate(func_decl * pred) const { return m_output_preds.contains(pred); }
|
||||
void inherit_output_predicate(rule_set const& src, func_decl* pred) { if (src.is_output_predicate(pred) && !is_output_predicate(pred)) set_output_predicate(pred); }
|
||||
const func_decl_set & get_output_predicates() const { return m_output_preds; }
|
||||
func_decl* get_output_predicate() const { SASSERT(m_output_preds.size() == 1); return *m_output_preds.begin(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue