mirror of
https://github.com/Z3Prover/z3
synced 2025-08-15 07:15:26 +00:00
Z3 sources
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3f9edad676
commit
e9eab22e5c
1186 changed files with 381859 additions and 0 deletions
49
lib/subpaving_mpf.h
Normal file
49
lib/subpaving_mpf.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
subpaving_mpf.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Subpaving for non-linear arithmetic using multi-precision floats.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2012-07-31.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef __SUBPAVING_MPF_H_
|
||||
#define __SUBPAVING_MPF_H_
|
||||
|
||||
#include"subpaving_t.h"
|
||||
#include"mpf.h"
|
||||
#include"f2n.h"
|
||||
|
||||
namespace subpaving {
|
||||
|
||||
struct config_mpf {
|
||||
f2n<mpf_manager> & m_manager;
|
||||
public:
|
||||
typedef f2n<mpf_manager> numeral_manager;
|
||||
typedef mpf numeral;
|
||||
typedef f2n<mpf_manager>::exception exception;
|
||||
|
||||
static void round_to_minus_inf(numeral_manager & m) { m.round_to_minus_inf(); }
|
||||
static void round_to_plus_inf(numeral_manager & m) { m.round_to_plus_inf(); }
|
||||
static void set_rounding(numeral_manager & m, bool to_plus_inf) { m.set_rounding(to_plus_inf); }
|
||||
config_mpf(f2n<mpf_manager> & m):m_manager(m) {}
|
||||
f2n<mpf_manager> & m() const { return const_cast<f2n<mpf_manager> &>(m_manager); }
|
||||
};
|
||||
|
||||
class context_mpf : public context_t<config_mpf> {
|
||||
public:
|
||||
context_mpf(f2n<mpf_manager> & m, params_ref const & p, small_object_allocator * a):context_t<config_mpf>(config_mpf(m), p, a) {}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue