GETABLEXPRMAX(3) | ABL FUNCTIONS | GETABLEXPRMAX(3) |
getablexprmax - applies a function to all operands.
See the file buster/alliance/alc_origin.1.en.gz.
#include "abl101.h" chain_list ∗getablexprmax( Function, Expr )
int (∗Function)();
chain_list ∗Expr;
getablexprmax applies the cost function Function to all operands of Expr.
getablexprmax returns the operand for which unction gives the maximum cost. The expression pointer returned MUSTN'T be modified after the call to this function.
getablexprmax error ...
#include "abl101.h"
int MapFunction( MapExpr )
chain_list ∗MapExpr;
{
return( getabldepthexpr( MapExpr ) );
}
...
chain_list ∗Expr;
chain_list ∗Expr1;
Expr = createablbinexpr( ABL_AND,
createablatom( "a" ),
createablatom( "b" ) );
Expr1 = getablexprmax( MapFunction, Expr );
See the file buster/alliance/alc_bug_report.1.en.gz.
October 1, 1997 | ASIM/LIP6 |