mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 17:36:15 +00:00
pull rounding mode top-level to deal with build
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5f4da31b19
commit
6277ed61c9
1 changed files with 10 additions and 8 deletions
|
@ -127,6 +127,14 @@ namespace z3 {
|
||||||
unsat, sat, unknown
|
unsat, sat, unknown
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum rounding_mode {
|
||||||
|
RNA,
|
||||||
|
RNE,
|
||||||
|
RTP,
|
||||||
|
RTN,
|
||||||
|
RTZ
|
||||||
|
};
|
||||||
|
|
||||||
inline check_result to_check_result(Z3_lbool l) {
|
inline check_result to_check_result(Z3_lbool l) {
|
||||||
if (l == Z3_L_TRUE) return sat;
|
if (l == Z3_L_TRUE) return sat;
|
||||||
else if (l == Z3_L_FALSE) return unsat;
|
else if (l == Z3_L_FALSE) return unsat;
|
||||||
|
@ -137,15 +145,9 @@ namespace z3 {
|
||||||
/**
|
/**
|
||||||
\brief A Context manages all other Z3 objects, global configuration options, etc.
|
\brief A Context manages all other Z3 objects, global configuration options, etc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
class context {
|
class context {
|
||||||
public:
|
|
||||||
enum rounding_mode {
|
|
||||||
RNA,
|
|
||||||
RNE,
|
|
||||||
RTP,
|
|
||||||
RTN,
|
|
||||||
RTZ
|
|
||||||
};
|
|
||||||
private:
|
private:
|
||||||
bool m_enable_exceptions;
|
bool m_enable_exceptions;
|
||||||
rounding_mode m_rounding_mode;
|
rounding_mode m_rounding_mode;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue