The main interaction with Z3 happens via the Context.
RealExpr MkRealPart(ArithExpr value)
Returns the Real-valued real component of a Complex expression.
RealExpr MkImagPart(ArithExpr value)
Returns the Real-valued imaginary component of a Complex expression.