1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*++
Copyright (c) 2018 Microsoft Corporation
Module Name:
arith_value.h
Abstract:
Utility to extract arithmetic values from context.
Author:
Nikolaj Bjorner (nbjorner) 2018-12-08.
Revision History:
--*/
#pragma once
#include "ast/arith_decl_plugin.h"
namespace euf {
class solver;
}
namespace arith {
class solver;
class arith_value {
euf::solver& s;
ast_manager& m;
arith_util a;
solver* as = nullptr;
void init();
public:
arith_value(euf::solver& s);
bool get_value(expr* e, rational& value);
#if 0
bool get_lo_equiv(expr* e, rational& lo, bool& strict);
bool get_up_equiv(expr* e, rational& up, bool& strict);
bool get_lo(expr* e, rational& lo, bool& strict);
bool get_up(expr* e, rational& up, bool& strict);
bool get_value_equiv(expr* e, rational& value);
expr_ref get_lo(expr* e);
expr_ref get_up(expr* e);
expr_ref get_fixed(expr* e);
#endif
};
};