Add concurrent assertions, sequence and property as verbatim items

assert/assume/cover/restrict property (...) [action block], optionally labeled, at item and statement position; sequence...endsequence and property...endproperty declarations. Verbatim pass-through like constraint/covergroup; verify.rs untouched, attack tests added.

Coverage loop round 1, cluster 4: 699 -> 712 / 820 (85.2% -> 86.8%).
Feature README: docs/features/assertions/README.md

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-08-20 23:38:22 -07:00
1 parent f7c66c79bf
commit e24d33afab
9 files changed
+938 -7

No files matched your search

+9 -2
View File
@@ -233,8 +233,10 @@ pub enum ItemKind {
/// A `class` / `virtual class` declaration and its body.
Class(ClassDecl),
/// A block vfmt deliberately does not model, kept byte-for-byte:
/// `constraint c { ... }` and `covergroup ... endgroup`. See
/// `docs/features/classes/README.md` for why each one is verbatim.
/// `constraint c { ... }`, `covergroup ... endgroup`, a concurrent
/// assertion (`assert property ( ... );`) and a `property`/`sequence`
/// declaration. See `docs/features/classes/README.md` and
/// `docs/features/assertions/README.md` for why each one is verbatim.
Verbatim(RawText),
Defparam(Vec<(Expr, Expr)>),
/// Source that could not be parsed as an item, kept verbatim.
@@ -999,6 +1001,11 @@ pub enum StmtKind {
Directive(RawText),
/// Macro invocation used as a statement.
MacroStmt(MacroCall),
/// A concurrent assertion written in statement position
/// (`assert property ( ... ) else $error("...");` inside an `initial`),
/// kept byte-for-byte. The statement-level twin of the assertion half of
/// [`ItemKind::Verbatim`]; see `docs/features/assertions/README.md`.
Verbatim(RawText),
/// Immediate assertion: kept simple — `assert (expr) stmt else stmt;`
Assert {
kw: String,