mirror of
https://github.com/Z3Prover/z3
synced 2025-05-02 21:37:02 +00:00
Z3 sources
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3f9edad676
commit
e9eab22e5c
1186 changed files with 381859 additions and 0 deletions
37
lib/stats.h
Normal file
37
lib/stats.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*++
|
||||
Copyright (c) 2009 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
stats.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Shared utilities for displaying statistics.
|
||||
|
||||
Author:
|
||||
|
||||
nbjorner 2009-12-6
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef __STATS_H_
|
||||
#define __STATS_H_
|
||||
|
||||
#include<ostream>
|
||||
|
||||
inline void print_stat(std::ostream& out, char const* msg, unsigned num) {
|
||||
if (num > 0) {
|
||||
out << msg << num << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
inline void print_stat_f(std::ostream& out, char const* msg, float num) {
|
||||
if (num > 0.0) {
|
||||
out << msg << num << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue