mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	add handler for reporting statistics
This commit is contained in:
		
							parent
							
								
									8afec86fe8
								
							
						
					
					
						commit
						ab36f86843
					
				
					 2 changed files with 21 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue