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

NAME

6       getablexprmin - applies a function to all operands.
7

SYNOPSIS

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

PARAMETERS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

29       getablexprmin 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 = getablexprmin( MapFunction, Expr );
45

SEE ALSO

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