3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-13 10:44:43 +00:00

added stubs for theory_fpa

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2014-04-23 20:10:53 +01:00
parent af0b823bf5
commit a8b65ebb36
6 changed files with 80 additions and 10 deletions

View file

@ -17,14 +17,29 @@ Revision History:
--*/
#include"ast_smt2_pp.h"
#include"smt_context.h"
#include"theory_fpa.h"
namespace smt {
theory_fpa::theory_fpa(ast_manager & m) :
theory(m.mk_family_id("float")),
m_converter(m),
m_rw(m, m_converter, params_ref())
{
}
bool theory_fpa::internalize_atom(app * atom, bool gate_ctx) {
TRACE("bv", tout << "internalizing atom: " << mk_ismt2_pp(atom, get_manager()) << "\n";);
TRACE("fpa", tout << "internalizing atom: " << mk_ismt2_pp(atom, get_manager()) << "\n";);
SASSERT(atom->get_family_id() == get_family_id());
NOT_IMPLEMENTED_YET();
ast_manager & m = get_manager();
context & ctx = get_context();
expr_ref res(m);
m_rw(atom, res);
SASSERT(res.get() != atom);
ctx.internalize(res, gate_ctx);
return true;
}