Expand description
Debug-only structural assertions for AST/model integrity.
The assertions in this module validate a few key invariants:
Rootexists exactly once, at the top-level model root, and nowhere else.- all referenced names resolve to declarations present in reachable symbol tables.
- a combined model well-formedness check that applies all assertions.
Functions§
- debug_
assert_ all_ names_ resolved - Debug-assert that all names referenced by expressions/domains resolve to declared symbols.
- debug_
assert_ model_ well_ formed - Debug-assert that a model is well-formed by applying all AST assertions in this module.
- debug_
assert_ root_ at_ top_ level_ only - Debug-assert that there is exactly one
Rootexpression, and it is the model’s top-level root.