z3-z3-4.13.0.src.model.numeral_factory.h Maven / Gradle / Ivy
The newest version!
/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
numeral_factory.h
Abstract:
Author:
Leonardo de Moura (leonardo) 2008-10-28.
Revision History:
--*/
#pragma once
#include "ast/arith_decl_plugin.h"
#include "ast/bv_decl_plugin.h"
#include "model/value_factory.h"
class numeral_factory : public simple_factory {
public:
numeral_factory(ast_manager & m, family_id fid):simple_factory(m, fid) {}
};
class arith_factory : public numeral_factory {
arith_util m_util;
app * mk_value_core(rational const & val, sort * s) override;
public:
arith_factory(ast_manager & m);
~arith_factory() override;
app * mk_num_value(rational const & val, bool is_int);
};
class bv_factory : public numeral_factory {
bv_util m_util;
app * mk_value_core(rational const & val, sort * s) override;
public:
bv_factory(ast_manager & m);
~bv_factory() override;
app * mk_num_value(rational const & val, unsigned bv_size);
};