Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions conformance/sv-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,23 @@ method call changes the original. Full official runs at the pinned revision
report 1081 passing cases in 2state and 1092 in 4state, with no passing case
regressing.

Classes of packages and of the compilation unit update 62 more rows: both
state modes of 31 chapter 18 cases that declare classes outside any module
change from fail to pass, as such sources now elaborate their compilation unit.
Seven declare no constraints: `18.4.1--rand-modifier`,
`18.12--randomization-of-scope-variables_0`, `18.13.1--urandom_0`,
`18.13.1--urandom_2`, `18.13.2--urandom_range_0` and
`18.15--manually-seeding-randomize_0` were each simulated with a module that
constructs the class and calls its methods or `randomize()`, and printed the
expected results; `18.4.2--randc-modifier` elaborates while `randomize()` of
its `randc` property is rejected. The other 24 pass by elaboration alone:
their constraint blocks are parsed but not checked, and `randomize()` of a
class with constraints is rejected. `18.5.8.1--foreach-iterative-constraints_0`,
`18.5.8.2--array-reduction-iterative-constraints_0` and
`18.6.3--behavior-of-randomization-methods_0` keep failing on their array and
static random properties. Full official runs at the pinned revision report 1112
passing cases in 2state and 1123 in 4state, with no passing case regressing.

## Running locally

Use the locked development shell and install the pinned [`requirements.txt`](requirements.txt) in a Python environment.
Expand Down
124 changes: 62 additions & 62 deletions conformance/sv-tests/expected.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -413,24 +413,24 @@ chapter-18/18.11.1--in-line-constraint-checker_0.sv 2state fail
chapter-18/18.11.1--in-line-constraint-checker_0.sv 4state fail
chapter-18/18.11.1--in-line-constraint-checker_1.sv 2state fail
chapter-18/18.11.1--in-line-constraint-checker_1.sv 4state fail
chapter-18/18.12--randomization-of-scope-variables_0.sv 2state fail
chapter-18/18.12--randomization-of-scope-variables_0.sv 4state fail
chapter-18/18.12--randomization-of-scope-variables_0.sv 2state pass
chapter-18/18.12--randomization-of-scope-variables_0.sv 4state pass
chapter-18/18.12--randomization-of-scope-variables_1.sv 2state fail
chapter-18/18.12--randomization-of-scope-variables_1.sv 4state fail
chapter-18/18.12.1--adding-constraints-to-scope-variables_0.sv 2state fail
chapter-18/18.12.1--adding-constraints-to-scope-variables_0.sv 4state fail
chapter-18/18.12.1--adding-constraints-to-scope-variables_1.sv 2state fail
chapter-18/18.12.1--adding-constraints-to-scope-variables_1.sv 4state fail
chapter-18/18.13.1--urandom_0.sv 2state fail
chapter-18/18.13.1--urandom_0.sv 4state fail
chapter-18/18.13.1--urandom_0.sv 2state pass
chapter-18/18.13.1--urandom_0.sv 4state pass
chapter-18/18.13.1--urandom_1.sv 2state fail
chapter-18/18.13.1--urandom_1.sv 4state fail
chapter-18/18.13.1--urandom_2.sv 2state fail
chapter-18/18.13.1--urandom_2.sv 4state fail
chapter-18/18.13.1--urandom_2.sv 2state pass
chapter-18/18.13.1--urandom_2.sv 4state pass
chapter-18/18.13.1--urandom_3.sv 2state fail
chapter-18/18.13.1--urandom_3.sv 4state fail
chapter-18/18.13.2--urandom_range_0.sv 2state fail
chapter-18/18.13.2--urandom_range_0.sv 4state fail
chapter-18/18.13.2--urandom_range_0.sv 2state pass
chapter-18/18.13.2--urandom_range_0.sv 4state pass
chapter-18/18.13.2--urandom_range_1.sv 2state fail
chapter-18/18.13.2--urandom_range_1.sv 4state fail
chapter-18/18.13.2--urandom_range_2.sv 2state fail
Expand Down Expand Up @@ -459,8 +459,8 @@ chapter-18/18.14.3--object-stability_0.sv 2state fail
chapter-18/18.14.3--object-stability_0.sv 4state fail
chapter-18/18.14.3--object-stability_1.sv 2state fail
chapter-18/18.14.3--object-stability_1.sv 4state fail
chapter-18/18.15--manually-seeding-randomize_0.sv 2state fail
chapter-18/18.15--manually-seeding-randomize_0.sv 4state fail
chapter-18/18.15--manually-seeding-randomize_0.sv 2state pass
chapter-18/18.15--manually-seeding-randomize_0.sv 4state pass
chapter-18/18.15--manually-seeding-randomize_1.sv 2state fail
chapter-18/18.15--manually-seeding-randomize_1.sv 4state fail
chapter-18/18.16--random-weighted-case-randcase_0.sv 2state fail
Expand Down Expand Up @@ -499,12 +499,12 @@ chapter-18/18.17.6--aborting-productions-break-and-return_2_fail.sv 2state pass
chapter-18/18.17.6--aborting-productions-break-and-return_2_fail.sv 4state pass
chapter-18/18.17.7--value-passing-between-productions_0.sv 2state fail
chapter-18/18.17.7--value-passing-between-productions_0.sv 4state fail
chapter-18/18.4.1--rand-modifier.sv 2state fail
chapter-18/18.4.1--rand-modifier.sv 4state fail
chapter-18/18.4.2--randc-modifier.sv 2state fail
chapter-18/18.4.2--randc-modifier.sv 4state fail
chapter-18/18.5--constraint-blocks_0.sv 2state fail
chapter-18/18.5--constraint-blocks_0.sv 4state fail
chapter-18/18.4.1--rand-modifier.sv 2state pass
chapter-18/18.4.1--rand-modifier.sv 4state pass
chapter-18/18.4.2--randc-modifier.sv 2state pass
chapter-18/18.4.2--randc-modifier.sv 4state pass
chapter-18/18.5--constraint-blocks_0.sv 2state pass
chapter-18/18.5--constraint-blocks_0.sv 4state pass
chapter-18/18.5--constraint-blocks_1.sv 2state fail
chapter-18/18.5--constraint-blocks_1.sv 4state fail
chapter-18/18.5.1--explicit-external-constraint_0.sv 2state fail
Expand All @@ -515,34 +515,34 @@ chapter-18/18.5.1--explicit-external-constraint_2.sv 2state fail
chapter-18/18.5.1--explicit-external-constraint_2.sv 4state fail
chapter-18/18.5.1--implicit-external-constraint_0.sv 2state fail
chapter-18/18.5.1--implicit-external-constraint_0.sv 4state fail
chapter-18/18.5.1--implicit-external-constraint_1.sv 2state fail
chapter-18/18.5.1--implicit-external-constraint_1.sv 4state fail
chapter-18/18.5.1--implicit-external-constraint_1.sv 2state pass
chapter-18/18.5.1--implicit-external-constraint_1.sv 4state pass
chapter-18/18.5.1--implicit-external-constraint_2.sv 2state fail
chapter-18/18.5.1--implicit-external-constraint_2.sv 4state fail
chapter-18/18.5.10--variable-ordering_0.sv 2state fail
chapter-18/18.5.10--variable-ordering_0.sv 4state fail
chapter-18/18.5.10--variable-ordering_0.sv 2state pass
chapter-18/18.5.10--variable-ordering_0.sv 4state pass
chapter-18/18.5.10--variable-ordering_1.sv 2state pass
chapter-18/18.5.10--variable-ordering_1.sv 4state pass
chapter-18/18.5.11--static-constraint-blocks_0.sv 2state fail
chapter-18/18.5.11--static-constraint-blocks_0.sv 4state fail
chapter-18/18.5.11--static-constraint-blocks_0.sv 2state pass
chapter-18/18.5.11--static-constraint-blocks_0.sv 4state pass
chapter-18/18.5.11--static-constraint-blocks_1.sv 2state fail
chapter-18/18.5.11--static-constraint-blocks_1.sv 4state fail
chapter-18/18.5.12--functions-in-constraint_0.sv 2state fail
chapter-18/18.5.12--functions-in-constraint_0.sv 4state fail
chapter-18/18.5.12--functions-in-constraint_0.sv 2state pass
chapter-18/18.5.12--functions-in-constraint_0.sv 4state pass
chapter-18/18.5.12--functions-in-constraint_1.sv 2state fail
chapter-18/18.5.12--functions-in-constraint_1.sv 4state fail
chapter-18/18.5.13--constraint-guards_0.sv 2state fail
chapter-18/18.5.13--constraint-guards_0.sv 4state fail
chapter-18/18.5.13--constraint-guards_0.sv 2state pass
chapter-18/18.5.13--constraint-guards_0.sv 4state pass
chapter-18/18.5.13--constraint-guards_1.sv 2state fail
chapter-18/18.5.13--constraint-guards_1.sv 4state fail
chapter-18/18.5.14--soft-constraints_0.sv 2state fail
chapter-18/18.5.14--soft-constraints_0.sv 4state fail
chapter-18/18.5.14--soft-constraints_0.sv 2state pass
chapter-18/18.5.14--soft-constraints_0.sv 4state pass
chapter-18/18.5.14--soft-constraints_1.sv 2state fail
chapter-18/18.5.14--soft-constraints_1.sv 4state fail
chapter-18/18.5.14--soft-constraints_2.sv 2state pass
chapter-18/18.5.14--soft-constraints_2.sv 4state pass
chapter-18/18.5.14.1--soft-constraint-priorities_0.sv 2state fail
chapter-18/18.5.14.1--soft-constraint-priorities_0.sv 4state fail
chapter-18/18.5.14.1--soft-constraint-priorities_0.sv 2state pass
chapter-18/18.5.14.1--soft-constraint-priorities_0.sv 4state pass
chapter-18/18.5.14.1--soft-constraint-priorities_1.sv 2state fail
chapter-18/18.5.14.1--soft-constraint-priorities_1.sv 4state fail
chapter-18/18.5.14.1--soft-constraint-priorities_2.sv 2state fail
Expand All @@ -551,54 +551,54 @@ chapter-18/18.5.14.1--soft-constraint-priorities_3.sv 2state fail
chapter-18/18.5.14.1--soft-constraint-priorities_3.sv 4state fail
chapter-18/18.5.14.1--soft-constraint-priorities_4.sv 2state fail
chapter-18/18.5.14.1--soft-constraint-priorities_4.sv 4state fail
chapter-18/18.5.14.2--discarding-soft-constraints_0.sv 2state fail
chapter-18/18.5.14.2--discarding-soft-constraints_0.sv 4state fail
chapter-18/18.5.14.2--discarding-soft-constraints_0.sv 2state pass
chapter-18/18.5.14.2--discarding-soft-constraints_0.sv 4state pass
chapter-18/18.5.14.2--discarding-soft-constraints_1.sv 2state fail
chapter-18/18.5.14.2--discarding-soft-constraints_1.sv 4state fail
chapter-18/18.5.14.2--discarding-soft-constraints_2.sv 2state fail
chapter-18/18.5.14.2--discarding-soft-constraints_2.sv 4state fail
chapter-18/18.5.14.2--discarding-soft-constraints_2.sv 2state pass
chapter-18/18.5.14.2--discarding-soft-constraints_2.sv 4state pass
chapter-18/18.5.14.2--discarding-soft-constraints_3.sv 2state fail
chapter-18/18.5.14.2--discarding-soft-constraints_3.sv 4state fail
chapter-18/18.5.14.2--discarding-soft-constraints_5.sv 2state fail
chapter-18/18.5.14.2--discarding-soft-constraints_5.sv 4state fail
chapter-18/18.5.2--constraint-inheritance_0.sv 2state fail
chapter-18/18.5.2--constraint-inheritance_0.sv 4state fail
chapter-18/18.5.2--constraint-inheritance_0.sv 2state pass
chapter-18/18.5.2--constraint-inheritance_0.sv 4state pass
chapter-18/18.5.2--constraint-inheritance_1.sv 2state fail
chapter-18/18.5.2--constraint-inheritance_1.sv 4state fail
chapter-18/18.5.2--pure-constraint_0.sv 2state fail
chapter-18/18.5.2--pure-constraint_0.sv 4state fail
chapter-18/18.5.2--pure-constraint_0.sv 2state pass
chapter-18/18.5.2--pure-constraint_0.sv 4state pass
chapter-18/18.5.2--pure-constraint_1.sv 2state fail
chapter-18/18.5.2--pure-constraint_1.sv 4state fail
chapter-18/18.5.2--pure-constraint_2.sv 2state pass
chapter-18/18.5.2--pure-constraint_2.sv 4state pass
chapter-18/18.5.2--pure-constraint_3.sv 2state fail
chapter-18/18.5.2--pure-constraint_3.sv 4state fail
chapter-18/18.5.3--set-membership_0.sv 2state fail
chapter-18/18.5.3--set-membership_0.sv 4state fail
chapter-18/18.5.2--pure-constraint_3.sv 2state pass
chapter-18/18.5.2--pure-constraint_3.sv 4state pass
chapter-18/18.5.3--set-membership_0.sv 2state pass
chapter-18/18.5.3--set-membership_0.sv 4state pass
chapter-18/18.5.3--set-membership_1.sv 2state fail
chapter-18/18.5.3--set-membership_1.sv 4state fail
chapter-18/18.5.4--distribution_0.sv 2state fail
chapter-18/18.5.4--distribution_0.sv 4state fail
chapter-18/18.5.4--distribution_0.sv 2state pass
chapter-18/18.5.4--distribution_0.sv 4state pass
chapter-18/18.5.4--distribution_1.sv 2state fail
chapter-18/18.5.4--distribution_1.sv 4state fail
chapter-18/18.5.4--distribution_2.sv 2state pass
chapter-18/18.5.4--distribution_2.sv 4state pass
chapter-18/18.5.5--uniqueness-constraints_0.sv 2state fail
chapter-18/18.5.5--uniqueness-constraints_0.sv 4state fail
chapter-18/18.5.5--uniqueness-constraints_0.sv 2state pass
chapter-18/18.5.5--uniqueness-constraints_0.sv 4state pass
chapter-18/18.5.5--uniqueness-constraints_1.sv 2state fail
chapter-18/18.5.5--uniqueness-constraints_1.sv 4state fail
chapter-18/18.5.6--implication_0.sv 2state fail
chapter-18/18.5.6--implication_0.sv 4state fail
chapter-18/18.5.6--implication_0.sv 2state pass
chapter-18/18.5.6--implication_0.sv 4state pass
chapter-18/18.5.6--implication_1.sv 2state fail
chapter-18/18.5.6--implication_1.sv 4state fail
chapter-18/18.5.7--if-else-constraints_0.sv 2state fail
chapter-18/18.5.7--if-else-constraints_0.sv 4state fail
chapter-18/18.5.7--if-else-constraints_1.sv 2state fail
chapter-18/18.5.7--if-else-constraints_1.sv 4state fail
chapter-18/18.5.7--if-else-constraints_2.sv 2state fail
chapter-18/18.5.7--if-else-constraints_2.sv 4state fail
chapter-18/18.5.7--if-else-constraints_3.sv 2state fail
chapter-18/18.5.7--if-else-constraints_3.sv 4state fail
chapter-18/18.5.7--if-else-constraints_0.sv 2state pass
chapter-18/18.5.7--if-else-constraints_0.sv 4state pass
chapter-18/18.5.7--if-else-constraints_1.sv 2state pass
chapter-18/18.5.7--if-else-constraints_1.sv 4state pass
chapter-18/18.5.7--if-else-constraints_2.sv 2state pass
chapter-18/18.5.7--if-else-constraints_2.sv 4state pass
chapter-18/18.5.7--if-else-constraints_3.sv 2state pass
chapter-18/18.5.7--if-else-constraints_3.sv 4state pass
chapter-18/18.5.7--if-else-constraints_4.sv 2state fail
chapter-18/18.5.7--if-else-constraints_4.sv 4state fail
chapter-18/18.5.8.1--foreach-iterative-constraints_0.sv 2state fail
Expand All @@ -609,18 +609,18 @@ chapter-18/18.5.8.2--array-reduction-iterative-constraints_0.sv 2state fail
chapter-18/18.5.8.2--array-reduction-iterative-constraints_0.sv 4state fail
chapter-18/18.5.8.2--array-reduction-iterative-constraints_1.sv 2state fail
chapter-18/18.5.8.2--array-reduction-iterative-constraints_1.sv 4state fail
chapter-18/18.5.9--global-constraints_0.sv 2state fail
chapter-18/18.5.9--global-constraints_0.sv 4state fail
chapter-18/18.5.9--global-constraints_0.sv 2state pass
chapter-18/18.5.9--global-constraints_0.sv 4state pass
chapter-18/18.5.9--global-constraints_1.sv 2state fail
chapter-18/18.5.9--global-constraints_1.sv 4state fail
chapter-18/18.6.1--randomize-method_0.sv 2state fail
chapter-18/18.6.1--randomize-method_0.sv 4state fail
chapter-18/18.6.2--post-randomize_method_0.sv 2state fail
chapter-18/18.6.2--post-randomize_method_0.sv 4state fail
chapter-18/18.6.2--post-randomize_method_0.sv 2state pass
chapter-18/18.6.2--post-randomize_method_0.sv 4state pass
chapter-18/18.6.2--post-randomize_method_1.sv 2state fail
chapter-18/18.6.2--post-randomize_method_1.sv 4state fail
chapter-18/18.6.2--pre-randomize-method_0.sv 2state fail
chapter-18/18.6.2--pre-randomize-method_0.sv 4state fail
chapter-18/18.6.2--pre-randomize-method_0.sv 2state pass
chapter-18/18.6.2--pre-randomize-method_0.sv 4state pass
chapter-18/18.6.2--pre-randomize-method_1.sv 2state fail
chapter-18/18.6.2--pre-randomize-method_1.sv 4state fail
chapter-18/18.6.3--behavior-of-randomization-methods_0.sv 2state fail
Expand Down
8 changes: 7 additions & 1 deletion crates/celox-sv-analyzer/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1401,13 +1401,19 @@ impl Module {
.collect();
// A package keeps its symbols for the scopes that use it.
let symbols = (is_package || export_symbols).then(|| scope::ScopeSymbols {
classes: classes::scope_classes(syntax_tree, &const_env),
declarations_only: imported.declarations_only,
type_parameter_bindings: HashMap::default(),
pattern_parameter_bindings: HashMap::default(),
const_env: const_env.clone(),
parameter_values: parameter_values.clone(),
parameters: parameters.clone(),
type_aliases: type_aliases.clone(),
// A class of the scope is a type of it (IEEE 1800-2023 8.3).
type_aliases: type_aliases
.iter()
.map(|(name, ty)| (name.clone(), ty.clone()))
.chain(classes::scope_class_types(syntax_tree))
.collect(),
enum_constants: enum_constants.clone(),
functions: functions.clone(),
function_return_types: packed_dimensions.function_return_types.clone(),
Expand Down
Loading
Loading