WIP checkpoint, §32 paused 2026-09-03 — runaway root cause fixed (list_ends on an unmoved cursor), strict parity restored; 32.1–32.5 done, 32.6 half, 32.7 + gates not run
Root cause of the 100 GB crash: a non-ANSI port loop took its trailing
comma from the element, an error element never got that far, the next
iteration failed on the same comma, consumed nothing and pushed another
empty error element - an allocating spin. Fix is structural: list_ends
ends the list whenever the cursor has not moved since the iteration
began; the two loops that read their own separator also eat it after an
error element. Truncate-anywhere + delete-any-character pass under
tools/guard.sh -m 4. Strict parity: element_or_recover declines on a
conditional-compilation directive so split.rs's verbatim rescue still
runs. cargo test -p vlog_parser 365 + 26 + 31 / 0 failed; workspace
suite NOT re-run since the last fixes. Not done: completion pin + the
three validity probes (32.6), measurements (32.7), README amendments,
coverage_gaps M10, TODO ticks, every gate. Handshake: three
vlog_linter arms (visit.rs walk_param_ports, signals.rs connection
loops) live in the earlier commit 6a15594.
Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
6a15594ae8
commit
f1d44a2a0c
12 files changed
+639
-82
No files matched your search
@@ -91,18 +91,6 @@ pub enum PortList {
|
||||
NonAnsi(Vec<ListElem<NonAnsiPort>>),
|
||||
}
|
||||
|
||||
impl PortList {
|
||||
/// True when a tolerant parse recovered from an error inside this list.
|
||||
/// Always false on a tree [`crate::parse`] built.
|
||||
pub fn has_error(&self) -> bool {
|
||||
match self {
|
||||
PortList::None | PortList::Empty => false,
|
||||
PortList::Ansi(ports) => ports.iter().any(ListElem::is_error),
|
||||
PortList::NonAnsi(ports) => ports.iter().any(ListElem::is_error),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A name-only port in a non-ANSI header (`module m (a, b);`). It has no
|
||||
/// `name_span`: the port *is* its name, so `span` already is that range.
|
||||
#[derive(Debug)]
|
||||
@@ -256,17 +244,6 @@ pub enum Connections {
|
||||
Named(Vec<ListElem<Connection>>),
|
||||
}
|
||||
|
||||
impl Connections {
|
||||
/// True when a tolerant parse recovered from an error inside this list.
|
||||
/// Always false on a tree [`crate::parse`] built.
|
||||
pub fn has_error(&self) -> bool {
|
||||
match self {
|
||||
Connections::Ordered(conns) => conns.iter().any(ListElem::is_error),
|
||||
Connections::Named(conns) => conns.iter().any(ListElem::is_error),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OrderedConn {
|
||||
pub meta: Meta,
|
||||
|
||||
Reference in new issue
Block a user