This tool creates the fault-space pruning pilot and group entries. Those are used by the generic campaign to do fault experiments. Currently prune-trace only implements conventional def/use pruning (--prune-method "basic"). Change-Id: I1dfb431e3b1d3cd2ee891a49a3b6ac01210be11f
25 lines
433 B
C++
25 lines
433 B
C++
#ifndef __PRUNER_H__
|
|
#define __PRUNER_H__
|
|
|
|
#include "util/Database.hpp"
|
|
|
|
class Pruner {
|
|
protected:
|
|
int m_variant_id;
|
|
int m_method_id;
|
|
fail::Database *db;
|
|
|
|
public:
|
|
bool init(const std::string &variant, const std::string &benchmark,
|
|
fail::Database *sql);
|
|
|
|
virtual std::string method_name() = 0;
|
|
|
|
virtual bool create_database();
|
|
virtual bool clear_database();
|
|
|
|
virtual bool prune_all() = 0;
|
|
};
|
|
|
|
#endif
|