3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 19:47:52 +00:00

port to inherit from std::exception

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2024-11-04 13:25:14 -08:00
parent 407bad3693
commit a38bf3e22f
7 changed files with 17 additions and 17 deletions

View file

@ -22,7 +22,7 @@ Revision History:
#include "ast/simplifiers/bound_manager.h"
struct is_unbounded_proc {
struct found {};
struct found : public std::exception {};
arith_util m_util;
bound_manager & m_bm;

View file

@ -35,7 +35,7 @@ Notes:
class pb2bv_tactic : public tactic {
public:
struct non_pb { expr* e; non_pb(expr* e) : e(e) {}};
struct non_pb : public std::exception { expr* e; non_pb(expr* e) : e(e) {}};
struct only_01_visitor {
typedef rational numeral;
@ -167,7 +167,7 @@ private:
enum constraint_kind { EQ, GE, LE };
struct failed {};
struct failed : public std::exception {};
struct visitor {
imp & m_owner;

View file

@ -130,7 +130,7 @@ public:
};
struct has_nlmul {
struct found {};
struct found : public std::exception {};
ast_manager& m;
arith_util a;
has_nlmul(ast_manager& m):m(m), a(m) {}
@ -185,7 +185,7 @@ probe * mk_arith_max_bw_probe() {
namespace {
struct is_non_qflira_functor {
struct found {};
struct found : public std::exception {};
ast_manager & m;
arith_util u;
bool m_int;
@ -240,7 +240,7 @@ struct is_non_qflira_functor {
};
struct is_non_qfauflira_functor {
struct found {};
struct found : public std::exception {};
ast_manager & m;
arith_util m_arith_util;
array_util m_array_util;
@ -427,7 +427,7 @@ probe * mk_is_mip_probe() {
namespace {
struct is_non_nira_functor {
struct found {};
struct found : public std::exception {};
ast_manager & m;
arith_util u;
bool m_int;
@ -572,7 +572,7 @@ static bool is_lira(goal const & g) {
struct is_non_qfufnra_functor {
struct found {};
struct found : public std::exception {};
ast_manager & m;
arith_util u;
bool m_has_nonlinear;