3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-27 05:26:01 +00:00

add handler for reporting statistics

This commit is contained in:
Nikolaj Bjorner 2022-11-08 12:19:48 -08:00
parent 8afec86fe8
commit ab36f86843
2 changed files with 21 additions and 0 deletions

View file

@ -115,6 +115,15 @@ public:
void report_tactic_progress(char const * id, unsigned val);
class statistics_report {
tactic* m_tactic = nullptr;
std::function<void(statistics& st)> m_collector;
public:
statistics_report(tactic& t):m_tactic(&t) {}
statistics_report(std::function<void(statistics&)>& coll): m_collector(coll) {}
~statistics_report();
};
class skip_tactic : public tactic {
public:
void operator()(goal_ref const & in, goal_ref_buffer& result) override;