simpablexpr(3) simplies an expression.

SYNOPSYS

#include "abl101.h"
chain_list *simpablexpr( Expr )
  chain_list *Expr;

PARAMETERS

Expr
Expression to simplfy.

DESCRIPTION

simpablexpr simplifies Expr. The expression pointer Expr MUSTN'T be used after the call to this function.

RETURN VALUE

simpablexpr returns a pointer to the simplied expression.

EXAMPLE

#include "abl101.h"
  chain_list *Expr;
  Expr = createablbinexpr( ABL_AND,
                           createablatom( "'0'" ),
                           createablatom( "'1'" ) );
  Expr = simpablexpr( Expr );
  /* displays '0' */
  viewablexpr( Expr, ABL_VIEW_VHDL );