3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-29 14:30:07 +00:00

adding validation code to doc/udoc

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-09-23 17:10:00 -07:00
parent 54506408f9
commit 1111c0494f
13 changed files with 328 additions and 104 deletions

View file

@ -232,7 +232,7 @@ namespace datalog {
Each line must be prepended by \c indentation and ended by a newline character.
*/
virtual void display_body_impl(rel_context const & ctx, std::ostream & out, std::string indentation) const {}
virtual void display_body_impl(rel_context_base const & ctx, std::ostream & out, std::string indentation) const {}
void log_verbose(execution_context& ctx);
public:
@ -301,6 +301,8 @@ namespace datalog {
static instruction * mk_assert_signature(const relation_signature & s, reg_idx tgt);
void collect_statistics(statistics& st) const;
};
@ -327,7 +329,7 @@ namespace datalog {
void push_back(instruction * i) {
m_data.push_back(i);
if(m_observer) {
if (m_observer) {
m_observer->notify(i);
}
}
@ -336,6 +338,8 @@ namespace datalog {
m_observer = o;
}
void collect_statistics(statistics& st) const;
/**
\brief Perform instructions in the block. If the run was interrupted before completion,
return false; otherwise return true.
@ -353,6 +357,8 @@ namespace datalog {
display_indented(ctx, out, "");
}
void display_indented(rel_context_base const & ctx, std::ostream & out, std::string indentation) const;
unsigned num_instructions() const { return m_data.size(); }
};