1#ifndef MIDEND_COVERAGE_H_
2#define MIDEND_COVERAGE_H_
9#include "lib/source_file.h"
51 bool preorder(
const IR::AssignmentStatement *stmt)
override;
52 bool preorder(
const IR::MethodCallStatement *stmt)
override;
53 bool preorder(
const IR::ExitStatement *stmt)
override;
56 bool preorder(
const IR::Entry *entry)
override;
59 bool preorder(
const IR::P4Action *act)
override;
const CoverageSet & getCoverableNodes()
Definition coverage.cpp:91
Definition coverage.cpp:7
bool coverStatements
Cover IR::Statement.
Definition coverage.h:27
bool onlyCoveringTests
Skip tests which do not increase coverage.
Definition coverage.h:34
void printCoverageReport(const CoverageSet &all, const CoverageSet &visited)
Produces detailed final coverage log.
Definition coverage.cpp:59
bool coverActions
Cover IR::P4Action.
Definition coverage.h:31
std::set< const IR::Node *, SourceIdCmp > CoverageSet
Definition coverage.h:39
void logCoverage(const CoverageSet &all, const CoverageSet &visited, const CoverageSet &new_)
Logs nodes from new_ which have not yet been visited (are not members of visited).
Definition coverage.cpp:80
bool coverTableEntries
Cover IR::Entry.
Definition coverage.h:29
Specifies general options and which IR nodes to track with this particular visitor.
Definition coverage.h:25
Utility function to compare IR nodes in a set. We use their source info.
Definition coverage.h:20