DOKK / manpages / debian 10 / alliance / getablexprmax.3.en
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;

Cost function.
Expression to scan.

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

abl(1)

See the file buster/alliance/alc_bug_report.1.en.gz.

October 1, 1997 ASIM/LIP6