mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
reorganizing the code
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
9c057b87d1
commit
f57d4b1b19
34 changed files with 602 additions and 181 deletions
|
@ -218,8 +218,8 @@ namespace sat {
|
|||
lbool status(clause const & c) const;
|
||||
clause_offset get_offset(clause const & c) const { return m_cls_allocator.get_offset(&c); }
|
||||
void checkpoint() {
|
||||
if (m_cancel) throw solver_exception(TACTIC_CANCELED_MSG);
|
||||
if (memory::get_allocation_size() > m_config.m_max_memory) throw solver_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
if (m_cancel) throw solver_exception(Z3_CANCELED_MSG);
|
||||
if (memory::get_allocation_size() > m_config.m_max_memory) throw solver_exception(Z3_MAX_MEMORY_MSG);
|
||||
}
|
||||
protected:
|
||||
watch_list & get_wlist(literal l) { return m_watches[l.index()]; }
|
||||
|
|
|
@ -22,7 +22,8 @@ Revision History:
|
|||
#include"debug.h"
|
||||
#include"approx_set.h"
|
||||
#include"lbool.h"
|
||||
#include"tactic_exception.h"
|
||||
#include"z3_exception.h"
|
||||
#include"common_msgs.h"
|
||||
#include"vector.h"
|
||||
#include<iomanip>
|
||||
|
||||
|
@ -125,9 +126,9 @@ namespace sat {
|
|||
class integrity_checker;
|
||||
typedef ptr_vector<clause> clause_vector;
|
||||
|
||||
class solver_exception : public tactic_exception {
|
||||
class solver_exception : public default_exception {
|
||||
public:
|
||||
solver_exception(char const * msg):tactic_exception(msg) {}
|
||||
solver_exception(char const * msg):default_exception(msg) {}
|
||||
};
|
||||
|
||||
typedef default_exception sat_param_exception;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue