simpdupablexpr.3alc man page

simpdupablexpr — duplicates and simplies an expression.

Synopsis

#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 );

See Also

abl(1), simpdupablexpr(3).

Referenced By

simpablexpr.3alc(3).

October 1, 1997 ASIM/LIP6 ABL FUNCTIONS