3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

harness internalization and API for #1776

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-08-02 20:18:27 -07:00
parent fed977b492
commit f306f75e36
5 changed files with 16 additions and 12 deletions

View file

@ -65,12 +65,14 @@ public:
class scoped_suspend_rlimit {
reslimit & m_limit;
bool m_suspend;
public:
scoped_suspend_rlimit(reslimit& r): m_limit(r) {
m_suspend = r.m_suspend;
r.m_suspend = true;
}
~scoped_suspend_rlimit() {
m_limit.m_suspend = false;
m_limit.m_suspend = m_suspend;
}
};