mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15: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
26
src/util/common_msgs.cpp
Normal file
26
src/util/common_msgs.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
common_msgs.cpp
|
||||
|
||||
Abstract:
|
||||
|
||||
Common messages used in Z3.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo (leonardo) 2012-10-25
|
||||
|
||||
Notes:
|
||||
|
||||
--*/
|
||||
#include"common_msgs.h"
|
||||
|
||||
char const * common_msgs::g_canceled_msg = "canceled";
|
||||
char const * common_msgs::g_max_memory_msg = "max. memory exceeded";
|
||||
char const * common_msgs::g_max_scopes_msg = "max. scopes exceeded";
|
||||
char const * common_msgs::g_max_steps_msg = "max. steps exceeded";
|
||||
char const * common_msgs::g_max_frames_msg = "max. frames exceeded";
|
||||
char const * common_msgs::g_no_proofs_msg = "component does not support proof generation";
|
39
src/util/common_msgs.h
Normal file
39
src/util/common_msgs.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
common_msgs.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Common messages used in Z3.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo (leonardo) 2012-10-25
|
||||
|
||||
Notes:
|
||||
|
||||
--*/
|
||||
#ifndef __COMMON_MSGS_H_
|
||||
#define __COMMON_MSGS_H_
|
||||
|
||||
class common_msgs {
|
||||
public:
|
||||
static char const * g_canceled_msg;
|
||||
static char const * g_max_memory_msg;
|
||||
static char const * g_max_scopes_msg;
|
||||
static char const * g_max_steps_msg;
|
||||
static char const * g_max_frames_msg;
|
||||
static char const * g_no_proofs_msg;
|
||||
};
|
||||
|
||||
#define Z3_CANCELED_MSG common_msgs::g_canceled_msg
|
||||
#define Z3_MAX_MEMORY_MSG common_msgs::g_max_memory_msg
|
||||
#define Z3_MAX_SCOPES_MSG common_msgs::g_max_scopes_msg
|
||||
#define Z3_MAX_STEPS_MSG common_msgs::g_max_steps_msg
|
||||
#define Z3_MAX_FRAMES_MSG common_msgs::g_max_frames_msg
|
||||
#define Z3_NO_PROOF_GEN_MSG common_msgs::g_no_proofs_msg
|
||||
|
||||
#endif
|
|
@ -1,26 +0,0 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
tactic_exception.cpp
|
||||
|
||||
Abstract:
|
||||
|
||||
Tactic expection object.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo (leonardo) 2012-08-15
|
||||
|
||||
Notes:
|
||||
|
||||
--*/
|
||||
#include"tactic_exception.h"
|
||||
|
||||
char const * tactic_exception::g_tactic_canceled_msg = "canceled";
|
||||
char const * tactic_exception::g_tactic_max_memory_msg = "max. memory exceeded";
|
||||
char const * tactic_exception::g_tactic_max_scopes_msg = "max. scopes exceeded";
|
||||
char const * tactic_exception::g_tactic_max_steps_msg = "max. steps exceeded";
|
||||
char const * tactic_exception::g_tactic_max_frames_msg = "max. frames exceeded";
|
||||
char const * tactic_exception::g_tactic_no_proofs_msg = "tactic does not support proof generation";
|
|
@ -1,47 +0,0 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
tactic_exception.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Tactic expection object.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo (leonardo) 2012-08-15
|
||||
|
||||
Notes:
|
||||
|
||||
--*/
|
||||
#ifndef _TACTIC_EXCEPTION_H_
|
||||
#define _TACTIC_EXCEPTION_H_
|
||||
|
||||
#include"z3_exception.h"
|
||||
|
||||
class tactic_exception : public z3_exception {
|
||||
public:
|
||||
static char const * g_tactic_canceled_msg;
|
||||
static char const * g_tactic_max_memory_msg;
|
||||
static char const * g_tactic_max_scopes_msg;
|
||||
static char const * g_tactic_max_steps_msg;
|
||||
static char const * g_tactic_max_frames_msg;
|
||||
static char const * g_tactic_no_proofs_msg;
|
||||
protected:
|
||||
std::string m_msg;
|
||||
public:
|
||||
tactic_exception(char const * msg):m_msg(msg) {}
|
||||
virtual ~tactic_exception() {}
|
||||
virtual char const * msg() const { return m_msg.c_str(); }
|
||||
};
|
||||
|
||||
#define TACTIC_CANCELED_MSG tactic_exception::g_tactic_canceled_msg
|
||||
#define TACTIC_MAX_MEMORY_MSG tactic_exception::g_tactic_max_memory_msg
|
||||
#define TACTIC_MAX_SCOPES_MSG tactic_exception::g_tactic_max_scopes_msg
|
||||
#define TACTIC_MAX_STEPS_MSG tactic_exception::g_tactic_max_steps_msg
|
||||
#define TACTIC_MAX_FRAMES_MSG tactic_exception::g_tactic_max_frames_msg
|
||||
#define TACTIC_NO_PROOF_GEN_MSG tactic_exception::g_tactic_no_proofs_msg
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue