-
Notifications
You must be signed in to change notification settings - Fork 16
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
Print new top level expressions to human-readable rule trace #568
Conversation
niklasdewally
commented
Jan 6, 2025
•
edited
Loading
edited
- fix(rewrite_naive): remove duplicate log print for rule application
- rewriter: log new top level vars to human rule trace
111551d
to
d7f3d95
Compare
d7f3d95
to
a1b5753
Compare
The outputs look good! We also want the domains of the new aux variables though, is this easy to do? I think these should be in the
|
a1b5753
to
6f6ec47
Compare
6f6ec47
to
3c05625
Compare
Added symbol table logs @Soph1514 @ozgurakgun |
Closes #526 |
3c05625
to
e33101b
Compare
e33101b
to
929108a
Compare
I am fiddling with the output slightly, will push to this branch in a minute. I noticed you talk about removed variables. I don't think we will remove variables in these local rules per se, instead that might be a global pass once all expressions are rewritten. Variables that are not referenced from any expression can be dropped, for example. Removing in a local rule is tricky since you need to know if the same var is used in other places or not before you can remove it... |
Updating the domain, on the other hand, should be possible. |
I now notice something I had missed. The symbols field in Reduction copies all the symbols in the original model. I thought it would only contain the new symbols, like new_top. Just noting for now that an alternative would be to only store the new symbols in the Reduction and extend the model once a rule is applied. I won't change the current behaviour. |
My assumption was that we can use the same APIs for both local and global rules (as discussed on Teams) |
I guess we will have to think about these global rules at some point :) |