mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 17:08:45 +00:00
add some constness
Signed-off-by: Nuno Lopes <t-nclaud@microsoft.com>
This commit is contained in:
parent
51d3db8105
commit
0b0e5b6912
2 changed files with 5 additions and 5 deletions
|
@ -660,9 +660,9 @@ namespace datalog {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool dl_decl_util::is_numeral(expr* e, uint64& v) const {
|
bool dl_decl_util::is_numeral(const expr* e, uint64& v) const {
|
||||||
if (is_numeral(e)) {
|
if (is_numeral(e)) {
|
||||||
app* c = to_app(e);
|
const app* c = to_app(e);
|
||||||
SASSERT(c->get_decl()->get_num_parameters() == 2);
|
SASSERT(c->get_decl()->get_num_parameters() == 2);
|
||||||
parameter const& p = c->get_decl()->get_parameter(0);
|
parameter const& p = c->get_decl()->get_parameter(0);
|
||||||
SASSERT(p.is_rational());
|
SASSERT(p.is_rational());
|
||||||
|
|
|
@ -169,11 +169,11 @@ namespace datalog {
|
||||||
|
|
||||||
app* mk_le(expr* a, expr* b);
|
app* mk_le(expr* a, expr* b);
|
||||||
|
|
||||||
bool is_lt(expr* a) { return is_app_of(a, m_fid, OP_DL_LT); }
|
bool is_lt(const expr* a) const { return is_app_of(a, m_fid, OP_DL_LT); }
|
||||||
|
|
||||||
bool is_numeral(expr* c) const { return is_app_of(c, m_fid, OP_DL_CONSTANT); }
|
bool is_numeral(const expr* c) const { return is_app_of(c, m_fid, OP_DL_CONSTANT); }
|
||||||
|
|
||||||
bool is_numeral(expr* e, uint64& v) const;
|
bool is_numeral(const expr* e, uint64& v) const;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Utilities for extracting constants
|
// Utilities for extracting constants
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue