1GETABLEXPRMAX(3)                 ABL FUNCTIONS                GETABLEXPRMAX(3)
2
3
4

NAME

6       getablexprmax - applies a function to all operands.
7

SYNOPSIS

9       #include "abl101.h"
10       chain_list ∗getablexprmax( Function, Expr )
11         int       (∗Function)();
12         chain_list ∗Expr;
13

PARAMETERS

15       Function            Cost function.
16
17       Expr                Expression to scan.
18

DESCRIPTION

20       getablexprmax  applies  the  cost  function Function to all operands of
21       Expr.
22

RETURN VALUE

24       getablexprmax returns the operand for which unction gives  the  maximum
25       cost.   The  expression  pointer returned MUSTN'T be modified after the
26       call to this function.
27

ERRORS

29       getablexprmax error ...
30

EXAMPLE

32       #include "abl101.h"
33           int MapFunction( MapExpr )
34             chain_list ∗MapExpr;
35           {
36             return( getabldepthexpr( MapExpr ) );
37           }
38           ...
39           chain_list ∗Expr;
40           chain_list ∗Expr1;
41           Expr = createablbinexpr( ABL_AND,
42                                    createablatom( "a" ),
43                                    createablatom( "b" ) );
44          Expr1 = getablexprmax( MapFunction, Expr );
45

SEE ALSO

47       abl(1)
48
49
50
51
52
53
54ASIM/LIP6                       October 1, 1997               GETABLEXPRMAX(3)
Impressum