FORM
4.3
|
Public Member Functions | |
bool | operator< (const optimization &a) const |
Data Fields | |
int | type |
int | arg1 |
int | arg2 |
int | improve |
vector< WORD > | coeff |
vector< int > | eqnidxs |
class Optimization
This object represents an optimization. Its type is a number in the range 0 to 5. Depending on this type, the variables arg1, arg2 and coeff indicate:
type==0 : optimization of the form x[arg1] ^ arg2 (coeff=empty) type==1 : optimization of the form x[arg1] * x[arg2] (coeff=empty) type==2 : optimization of the form x[arg1] * coeff (arg2=0) type==3 : optimization of the form x[arg1] + coeff (arg2=0) type==4 : optimization of the form x[arg1] + x[arg2] (coeff=empty) type==5 : optimization of the form x[arg1] - x[arg2] (coeff=empty)
Here, "x[arg]" represents a symbol (if positive) or an extrasymbol (if negative). The represented symbol's id is ABS(x[arg])-1.
"eqns" is a list of equation, where this optimization can be performed.
"improve" is the total improvement of this optimization.
Definition at line 2623 of file optimize.cc.