intel / intel/rohd

Buggy Assertion that tends to check for submodule contained in a module

Open
#488 0 comments 1 reaction 1 assignee Claimed by @mkorbel1 View on GitHub
bug
Dominant language
Dart
Stars
489
Forks
88
Avg merge
3d 23h
Merged PRs (30d)
10

Description

### Describe the bug

The assertion is:
if (receiver.parentModule != module &&
!module.subModules.contains(receiver.parentModule)) {
// This should never happen!
assert(false, 'Receiver is not in this module or a submodule.');
continue;
}
This fails for modules that are optimized out and receiver that is also optimized out.

![image](https://github.com/intel/rohd/assets/105318306/25fe2ca0-5f2b-44cd-a582-2c2a8fd93129)

### To Reproduce

Use a bunch of subset connections in the hierarchy

### Expected behavior

_No response_

### Actual behavior

_No response_

### Additional: Dart SDK info

Dart SDK version: 3.3.3 (stable) (None) on "linux_x64"

### Additional: pubspec.yaml

_No response_

### Additional: Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.