prune-trace: sample from known results

The --use-known-results switch simulates sampling (with fault
expansion, FESamplingPruner) by reusing results from a previous
campaign covering the full fault space (that used the "basic" pruner).
The pruner only creates entries in the "fspgroup" table that refer to
already existing pilots and corresponding results.

This switch is not for normal Fail* use, but only for experimenting
with the FESamplingPruner.

Change-Id: I1bf561d93f55918d243c5306551a1c6b48027198
This commit is contained in:
Horst Schirmeier
2014-05-16 16:17:54 +02:00
parent 89817cf13f
commit a1e3b31cd5
2 changed files with 131 additions and 65 deletions

View File

@ -15,11 +15,13 @@
///
class FESamplingPruner : public Pruner {
fail::CommandLine::option_handle SAMPLESIZE;
fail::CommandLine::option_handle USE_KNOWN_RESULTS;
unsigned m_samplesize;
bool m_use_known_results;
public:
FESamplingPruner() : m_samplesize(0) { }
FESamplingPruner() : m_samplesize(0), m_use_known_results(false) { }
virtual std::string method_name() { return "FESampling"; }
virtual bool commandline_init();
virtual bool prune_all();