diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2020-02-19 16:59:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 16:59:58 -0800 |
commit | 508ecb3007a2b6aa8b76b28dc8282247b5dba957 (patch) | |
tree | b80cab956e6b40b4cd783ceb78393006c09782b5 /test | |
parent | 9705504973f6f85c6be4944c615984df7b614f67 (diff) |
resource manager: Add statistic for every resource. (#3772)
This commit adds statistics for all resource steps. A resource statistic is incremented by 1 if the resource is spent (via `spendResource`).
Fixes #3751.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/theory/theory_white.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/theory/theory_white.h b/test/unit/theory/theory_white.h index 3c6721857..5f7543f05 100644 --- a/test/unit/theory/theory_white.h +++ b/test/unit/theory/theory_white.h @@ -15,6 +15,7 @@ **/ #include <cxxtest/TestSuite.h> + #include <memory> #include <vector> @@ -26,6 +27,7 @@ #include "theory/theory.h" #include "theory/theory_engine.h" #include "util/proof.h" +#include "util/resource_manager.h" using namespace CVC4; using namespace CVC4::theory; @@ -45,7 +47,7 @@ class TestOutputChannel : public OutputChannel { TestOutputChannel() {} ~TestOutputChannel() override {} - void safePoint(uint64_t amount) override {} + void safePoint(ResourceManager::Resource r) override {} void conflict(TNode n, std::unique_ptr<Proof> pf) override { push(CONFLICT, n); |