mirror of
https://github.com/Z3Prover/z3
synced 2026-02-10 19:05:25 +00:00
Return sign from Z3_fpa_get_numeral_sign as bool instead of int (#8047)
The underlying `mpf_manager::sgn` function returns a `bool`, and functions such as `Z3_mk_fpa_numeral_int_uint` take the sign as a `bool`. Signed-off-by: Josh Berdine <josh@berdine.net>
This commit is contained in:
parent
4401abbb4a
commit
4af83e8501
5 changed files with 17 additions and 4 deletions
|
|
@ -662,6 +662,11 @@ struct z3_replayer::imp {
|
|||
return v.data();
|
||||
}
|
||||
|
||||
bool * get_bool_addr(unsigned pos) {
|
||||
check_arg(pos, INT64);
|
||||
return reinterpret_cast<bool*>(&(m_args[pos].m_int));
|
||||
}
|
||||
|
||||
int * get_int_addr(unsigned pos) {
|
||||
check_arg(pos, INT64);
|
||||
return reinterpret_cast<int*>(&(m_args[pos].m_int));
|
||||
|
|
@ -790,6 +795,10 @@ void ** z3_replayer::get_obj_array(unsigned pos) const {
|
|||
return m_imp->get_obj_array(pos);
|
||||
}
|
||||
|
||||
bool * z3_replayer::get_bool_addr(unsigned pos) {
|
||||
return m_imp->get_bool_addr(pos);
|
||||
}
|
||||
|
||||
int * z3_replayer::get_int_addr(unsigned pos) {
|
||||
return m_imp->get_int_addr(pos);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue