Function z3_sys::Z3_mk_int2real [] [src]

pub unsafe extern "C" fn Z3_mk_int2real(c: Z3_context, t1: Z3_ast) -> Z3_ast

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 k and and asserting mk_int2real(k) <= t1 < mk_int2real(k)+1.

The node t1 must have sort integer.

See also: