mk_int2real method
\brief Coerce an integer to a real.
There is also a converse operation exposed. It follows the semantics prescribed by the SMT-LIB standard.
You can take the floor of a real by creating an auxiliary integer constant \c k and and asserting \ccode{mk_int2real(k) <= t1 < mk_int2real(k)+1}.
The node \c t1 must have sort integer.
\sa Z3_mk_real2int \sa Z3_mk_is_int
def_API('Z3_mk_int2real', AST, (_in(CONTEXT), _in(AST)))
Implementation
Z3_ast mk_int2real(
Z3_context c,
Z3_ast t1,
) {
return _mk_int2real(
c,
t1,
);
}