Closed dustinswales closed 2 weeks ago
@climbfuji Thanks for the review. I will expand the var_compatibility_test to stress more of the edge cases that @peverwhee brought up.
@peverwhee It turns out that the real problem was in add_variable
, where it was catching an incompatibility when it was actually equivalent. All good now, and unit tests updated to reflect the distinction between VarCompatObj.compat and VarCompatObj.__equiv
@gold2718 Would you like to review this PR?
Just typos, otherwise approved!
Personally, I think it's more informative if Scheme, Group, Host, Var , etc..., which are (case sensitive) python classes, be referenced in their native form when commenting on them. Happy to change if others disagree, but "Group" is distinct from "group" in this context.
Just typos, otherwise approved!
Personally, I think it's more informative if Scheme, Group, Host, Var , etc..., which are (case sensitive) python classes, be referenced in their native form when commenting on them. Happy to change if others disagree, but "Group" is distinct from "group" in this context.
Ok, that's fine with me. The way I read the comments they looked like generic labels (a scheme, a group, ...) to me. Then let's just fix the type for compatibility please.
@dustinswales The other two PRs have been merged, let me know when this one is updated with the latest changes.
@mkavulich Updated.
gold2718
Sorry, been out of commission. Trying to catch up.
Description
Modifications made to handle local variables needed for variables transforms at the Scheme level. Previously the Group would manage the local variable
Fixes #594
In response to the scenarios in #594:
Scenario 1
If a variable is used in two different schemes and:
The Error was replicated and fixed by removing a bugfix at line 941 in var_props.py.
Scenario 2
On the flip side, if:
Output
Generated code for scenario number 2 (where the correct units are used):
Testing
All Capgen tests pass.