mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +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;
|
||||
}
|
||||
|
||||
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)) {
|
||||
app* c = to_app(e);
|
||||
const app* c = to_app(e);
|
||||
SASSERT(c->get_decl()->get_num_parameters() == 2);
|
||||
parameter const& p = c->get_decl()->get_parameter(0);
|
||||
SASSERT(p.is_rational());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue