Table of Contents

Name

mapabloperexpr - applies a function to all operands.

Origin

This software belongs to the ALLIANCE CAD system from the CAO-VLSI team at ASIM/LIP6/UPMC laboratory.
LIP6/ASIM
University P. et M. Curie 4, place Jussieu 75252 PARIS Cedex 05 FRANCE
Fax : {33/0} 1.44.27.62.86
E-mail support : alliance-support@asim.lip6.fr

Synopsys

#include abl101.h"
chain_list *mapabloperexpr( Function, Oper, Expr ) chain_list * (*Function)();

long
Oper; chain_list *Expr;

Parameters

Function
Function name to apply to all operands.
Oper
Operator number.
Expr
Expression to scan.

Description

mapabloperexpr applies Function to all operands of Expr. mapabloperexpr creates a head of an operator expression having Oper as operator and adds the arguments calculated by applying Function to each arguments of Expr. Function must return an expression and must have a unique expression as argument.

Return Value

mapabloperexpr returns a new expression by applying Function to all the arguments of the operator expression Expr.

Example

#include abl101.h"
chain_list *MapFunction( MapExpr )
chain_list *MapExpr;
{
return( createablnotexpr( dupablexpr( MapExpr ) ) ); }
chain_list *Expr;
chain_list *Expr1;
Expr = createablbinexpr( ABL_NOR,
createablatom( a ), createablatom( b ) );

Expr1 = mapabloperexpr( MapFunction, ABL_AND, Expr ); /* displays ((not a) and (not b)) */ viewablexpr( Expr1, ABL_VIEW_VHDL );

See Also

abl(1)

Bug Report

This tool is under development at the ASIM/LIP6/UPMC laboratory, cao-vlsi research team.
We need your feedbak to improve documentation and tools. If you find bugs, please fill-in the form at http://asim.lip6.fr/alliance/support/bug-report/ Thanks for doing this.


Table of Contents

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 26 May 2000.