mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 17:36:15 +00:00
remove class from enum class, add default to avoid compiler warning
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
efb12331e0
commit
5356c4f7dd
1 changed files with 7 additions and 6 deletions
|
@ -139,7 +139,7 @@ namespace z3 {
|
||||||
*/
|
*/
|
||||||
class context {
|
class context {
|
||||||
public:
|
public:
|
||||||
enum class rounding_mode {
|
enum rounding_mode {
|
||||||
RNA,
|
RNA,
|
||||||
RNE,
|
RNE,
|
||||||
RTP,
|
RTP,
|
||||||
|
@ -2693,11 +2693,12 @@ namespace z3 {
|
||||||
|
|
||||||
inline sort context::fpa_rounding_mode() {
|
inline sort context::fpa_rounding_mode() {
|
||||||
switch (m_rounding_mode) {
|
switch (m_rounding_mode) {
|
||||||
case rounding_mode::RNA: return sort(*this, Z3_mk_fpa_rna(m_ctx));
|
case rounding_mode::RNA: return sort(*this, Z3_mk_fpa_rna(m_ctx));
|
||||||
case rounding_mode::RNE: return sort(*this, Z3_mk_fpa_rne(m_ctx));
|
case rounding_mode::RNE: return sort(*this, Z3_mk_fpa_rne(m_ctx));
|
||||||
case rounding_mode::RTP: return sort(*this, Z3_mk_fpa_rtp(m_ctx));
|
case rounding_mode::RTP: return sort(*this, Z3_mk_fpa_rtp(m_ctx));
|
||||||
case rounding_mode::RTN: return sort(*this, Z3_mk_fpa_rtn(m_ctx));
|
case rounding_mode::RTN: return sort(*this, Z3_mk_fpa_rtn(m_ctx));
|
||||||
case rounding_mode::RTZ: return sort(*this, Z3_mk_fpa_rtz(m_ctx));
|
case rounding_mode::RTZ: return sort(*this, Z3_mk_fpa_rtz(m_ctx));
|
||||||
|
default: return sort(*this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue