All Downloads are FREE. Search and download functionalities are using the official Maven repository.

z3-z3-4.13.0.src.math.subpaving.subpaving_mpq.h Maven / Gradle / Ivy

The newest version!
/*++
Copyright (c) 2012 Microsoft Corporation

Module Name:

    subpaving_mpq.h

Abstract:

    Subpaving for non-linear arithmetic using rationals

Author:

    Leonardo de Moura (leonardo) 2012-07-31.

Revision History:

--*/
#pragma once

#include "math/subpaving/subpaving_t.h"
#include "util/mpq.h"

namespace subpaving {

struct config_mpq {
    typedef unsynch_mpq_manager numeral_manager;
    struct exception {};

    static void round_to_minus_inf(numeral_manager & m) {}
    static void round_to_plus_inf(numeral_manager & m) {}
    static void set_rounding(numeral_manager & m, bool to_plus_info) {}
    numeral_manager & m_manager;
    config_mpq(numeral_manager & m):m_manager(m) {}
    numeral_manager & m() const { return m_manager; }
};

typedef context_t context_mpq;

};





© 2015 - 2024 Weber Informatics LLC | Privacy Policy