-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[memory][scs][parser] Don't generate arcs from sc-element classes #434
base: main
Are you sure you want to change the base?
[memory][scs][parser] Don't generate arcs from sc-element classes #434
Conversation
98d16df
to
6ac65a8
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #434 +/- ##
==========================================
+ Coverage 95.49% 95.54% +0.05%
==========================================
Files 236 236
Lines 26037 26419 +382
Branches 1827 1837 +10
==========================================
+ Hits 24863 25241 +378
- Misses 1174 1178 +4 |
c053422
to
b1904dc
Compare
sc-memory/sc-memory/tests/sc-memory/units/templates/test_sc_templates_scs.cpp
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left comment in a thread
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left comment in a thread
e1bf70b
to
d617099
Compare
…lement types have not only outgoig base sc-arcs
…ture; fix adding triples with two sc-element types; fix adding hanging sc-element types
…o sc-element type
ce172e5
to
2786023
Compare
…lement with and withour constancy masks
ScType const & sourceTypeWithConstancySubtype = sourceType.BitAnd(ScType::Const | ScType::Var); | ||
ScType const & targetTypeWithConstancySubtype = targetType.BitAnd(ScType::Const | ScType::Var); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've spent a lot of time to understand that they are constancy subtype of type provided by source keynode and constancy subtype of target
maybe rename these variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about sourceTypeWithoutConstancySubtype and sourceTypeWithoutConstancySubtype?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe constancySubtypeProvidedBySourceKeynode and constancyTargetSubtype?
looks like we interpret these variables in different ways
ScType const & sourceTypeWithConstancySubtype = sourceType.BitAnd(ScType::Const | ScType::Var); | ||
ScType const & targetTypeWithConstancySubtype = targetType.BitAnd(ScType::Const | ScType::Var); | ||
bool doSourceAndTargetHaveCompatibleConstancySubtypes = | ||
sourceTypeWithConstancySubtype.CanExtendTo(targetTypeWithConstancySubtype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some lines like this one have space at the end
will this be fixed with clang?
sc-memory/sc-memory/tests/sc-memory/units/scs-helper/test_scs_helper.cpp
Outdated
Show resolved
Hide resolved
sc-memory/sc-memory/tests/sc-memory/units/scs-helper/test_scs_helper.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to decide on constancy subtypes
Now, sc-arcs between sc-element types and sc-elements are not generated in sc-memory. This allows for: