Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nanocoh committed Jun 8, 2024
1 parent 2346bb8 commit 19fc691
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/optimization/ConstantPropagation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ unsigned ConstantPropagation::computeOutputValue(DNLID instanceID) {
const SNLTruthTable& truthTable =
SNLDesignTruthTable::getTruthTable(instance.getSNLInstance()->getModel());
if (not truthTable.isInitialized()) {
// LCOV_EXCL_START
return (unsigned)-1;
// LCOV_EXCL_STOP
}
std::vector<std::pair<SNLID::DesignObjectID, int>> constTerms;
for (DNLID termId = instance.getTermIndexes().first;
Expand Down
4 changes: 4 additions & 0 deletions src/snl/snl/kernel/SNLInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ void SNLInstance::preCreate(SNLDesign* design, const SNLDesign* model, const SNL
if (name.empty()) {
reason << " <anonymous>";
} else {
// LCOV_EXCL_START
reason << " with name: " << name.getString();
// LCOV_EXCL_STOP
}
if (model) {
reason << " and model: " << model->getString();
Expand All @@ -100,7 +102,9 @@ void SNLInstance::preCreate(SNLDesign* design, const SNLDesign* model, const SNL
reason << " <anonymous>";
// LCOV_EXCL_STOP
} else {
// LCOV_EXCL_START
reason << " with name: " << name.getString();
// LCOV_EXCL_STOP
}
reason << " in design: " << design->getString();
reason << " has a NULL model argument";
Expand Down

0 comments on commit 19fc691

Please sign in to comment.