Saturate and gate all llvm-cov coverage metrics
Require 100% region, function, instantiation, line, branch, and MC/DC coverage in run-coverage.sh. Enable MC/DC instrumentation and rewrite the two decisions that Clang could not instrument cleanly: the crossed-room ternary, and the nested boolean under negation in crossedCompleteEndLeOne.
This commit is contained in:
1 parent
f23d8a28d3
commit
bf149c26b5
4 files changed
+46
-27
No files matched your search
+6
-6
@@ -652,10 +652,9 @@ struct Impl {
|
||||
: c.r->begin.key;
|
||||
return mk(std::move(begin), after(o.firstK()));
|
||||
}
|
||||
OptKeyView begin =
|
||||
(optLt(c.r->end_.key, c.r->begin.key) && closedFormCrossedRoom(c, o))
|
||||
? c.r->end_.key
|
||||
: c.r->begin.key;
|
||||
bool beginAtEnd = optLt(c.r->end_.key, c.r->begin.key) &&
|
||||
closedFormCrossedRoom(c, o);
|
||||
OptKeyView begin = beginAtEnd ? c.r->end_.key : c.r->begin.key;
|
||||
return mk(std::move(begin), topKey());
|
||||
}
|
||||
|
||||
@@ -685,8 +684,9 @@ struct Impl {
|
||||
bool crossedCompleteEndLeOne(const Ctx& c) const {
|
||||
if (c.r->end_.offset == 1 && bSlack(c) < c.below)
|
||||
return true;
|
||||
return c.r->end_.offset <= 0 &&
|
||||
!(c.below <= bSlack(c) && clampNonposBottom(c));
|
||||
if (c.r->end_.offset > 0) return false;
|
||||
bool clampedBottom = c.below <= bSlack(c) && clampNonposBottom(c);
|
||||
return !clampedBottom;
|
||||
}
|
||||
|
||||
// The overshoot branch above already covered the offset-zero overshoot
|
||||
|
||||
Reference in new issue
Block a user