|
Ghidra Decompiler Analysis Engine
|
Class for calculating "goodness of fit" of parameter trials against a prototype model. More...
#include <fspec.hh>
Public Member Functions | |
| ScoreProtoModel (bool isinput, const ProtoModel *mod, int4 numparam) | |
| Constructor. More... | |
| void | addParameter (const Address &addr, int4 sz) |
| Register a trial to be scored. More... | |
| void | doScore (void) |
| Compute the fitness score. | |
Class for calculating "goodness of fit" of parameter trials against a prototype model.
The class is instantiated with a prototype model (ProtoModel). A set of Varnode parameter trials are registered by calling addParameter() for each trial. Then calling doScore() computes a score that evaluates how well the set of registered trials fit the prototype model. A lower score indicates a better fit.
| ScoreProtoModel::ScoreProtoModel | ( | bool | isinput, |
| const ProtoModel * | mod, | ||
| int4 | numparam | ||
| ) |
| isinput | is set to true to compute scores against the input part of the model |
| mod | is the prototype model to score against |
| numparam | is the presumed number of trials that will constitute the score |
| void ScoreProtoModel::addParameter | ( | const Address & | addr, |
| int4 | sz | ||
| ) |
Register a trial to be scored.
| addr | is the starting address of the trial |
| sz | is the number of bytes in the trial |
1.8.17