simpdupablexpr(3)
duplicates and simplies an expression.
SYNOPSYS
#include "abl101.h"
chain_list *simpdupablexpr( Expr )
chain_list *Expr;
PARAMETERS
- Expr
-
Expression to simplfy.
DESCRIPTION
simpdupablexpr simplifies Expr.
RETURN VALUE
simpdupablexpr returns a pointer to the simplied expression.
EXAMPLE
#include "abl101.h"
chain_list *Expr;
chain_list *ExprSimp;
Expr = createablbinexpr( ABL_AND,
createablatom( "'0'" ),
createablatom( "'1'" ) );
ExprSimp = simpdupablexpr( Expr );
/* displays ('0' and '1') '0' */
viewablexpr( Expr, ABL_VIEW_VHDL );
viewablexpr( ExprSimp, ABL_VIEW_VHDL );