Improve coverage

Signed-off-by: Bartłomiej Chmiel <bchmiel@antmicro.com>
This commit is contained in:
Bartłomiej Chmiel 2025-11-06 12:38:47 +01:00
parent 4815ef662c
commit 82fbb446ed
No known key found for this signature in database
GPG Key ID: AF7A8DBF070764A4
1 changed files with 1 additions and 4 deletions

View File

@ -221,10 +221,7 @@ class AssertPropTransformer final {
UASSERT_OBJ(vtxp->outEdges().size() == 2, nodep, "Each expression must have two branches");
AstBegin* const passsp = new AstBegin{
nodep->fileline(), m_assertCycleDelayNames.get(nodep) + "__block_pass", nullptr, true};
AstNode* const failsp = [vtxp]() {
V3GraphVertex* const failVtxp = vtxp->outEdges().backp()->top();
return failVtxp->as<DfaStmtVertex>()->nodep();
}();
AstNode* const failsp = vtxp->outEdges().backp()->top()->as<DfaStmtVertex>()->nodep();
AstSampled* const sampledp
= new AstSampled{nodep->fileline(), VN_AS(vtxp->nodep(), NodeExpr)};