-
Notifications
You must be signed in to change notification settings - Fork 33
[HW] Debugging test_examples_optimize
#410
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
Comments
I also found and fixed bugs in my optimization process, thanks to the new addition of |
I made a simple shell script for debugging It just runs the You can just run this script at the root directory then it will log the intermediate results in
The code is little dirty and slow since it is not integrated into the test code directly, but I think it is enough for just debugging this test. I hope this helps other classmates debug the optimizattions! |
Uh oh!
There was an error while loading. Please reload this page.
I finished all the given tests for optimization passes and trying to make my compiler work for
test_examples_optimize
.But it seems like debugging to pass this test is almost impossible, since we cannot know which part of our optimization pass is malfunctioning. So I am currently trying to guess which optimization pass is not working just by the final output.
Can I ask for help in debugging this cases?
One idea is that if there is some kind of logging functionality in the kecc(like
--log
option) that writes the optimization result for each pass to the filesystem, I could better debug the optimizations.The text was updated successfully, but these errors were encountered: