-
Notifications
You must be signed in to change notification settings - Fork 138
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
$-variable pattern matching and nested denominators #400
Comments
Before the sort,
and after like
The only difference is the dirty flag, which then seems to prevent the match. Forcing a term normalization after So it seems a necessary normalization call is missing at the end of the |
Changing the code in case TYPEDENOMINATORS:
if ( DenToFunction(term,C->lhs[level][2]) ) Normalize(BHEAD term);
break; Only normalizes the first level for some reason:
|
OK, so actually $-variables are not needed to reproduce this bug and a reduced test code is
where the two lines of If you call The following if ( DenToFunction(term,C->lhs[level][2]) ) goto ReStart; seems to work, but may be overkill? |
In the following program, in the 1st module, I use the
denominators
statement and then try a pattern matching (theid
statement) with an expression captured in a $-variable, but it fails. After.sort
, in the 2nd module, the same code somehow works.If this works in the 2nd module, then it should also work in the 1st module.
The text was updated successfully, but these errors were encountered: