-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix EHeapElems bug by combining length member with heap array #71
Conversation
5df332d
to
9612767
Compare
@Calvin-L I think I've done working on this -- do you have any feedback? |
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.
The changes here look good to me.
Travis is complaining about two stray semicolons (noted below).
Additionally, there is one failing test because of an unimplemented case in visit_EArrayIndexOf
in cxx.py.
Line 351 in cb7fd1e
It seems like I will need to comment this assertion out -- and even if this is done, generated code will complain about |
The curious fact is that, |
I found that I can just delete the un-compilable gash function definition in C++. it seems not needed. I think I will first propose to only generate hash function for struct that actually needs it. |
revised C++ hash struct logic a bit -- only generating Hash function if all subfields are scalar types |
@Calvin-L regarding the ArrayIndexOf, it seems that what you need is to cache evaluated |
That's right. I put that |
I figured that caching inside a variable is a bit overkill in this case - I found that in C++ assignment might copy the vector. In my case, the |
I added implementation for hashing the |
a lot of tests are broken by my hash implementation -- @Calvin-L maybe we can do this in a separate commit later? |
@Calvin-L ping |
@Calvin-L I intend to revert my attempt to implement hash function for array, and leave it as a future work since it breaks too many regression test -- what do you think? |
I would much prefer not to push code that breaks tests. If you have a follow-up in mind that fixes them, just add it to this PR. Also, a quick note: Many of the tests are failing on this PR with messages like |
(FWIW: I am eager to get this merged, I'd just like to do it with a passing test suite. There is good stuff in this PR, and the changes I am putting together for #49 depend on some of the changes here.) |
I agree that we should never push code to master that breaks tests. |
Pushed update and it seems fixing it (also, with just the fix you suggested, Thanks a lot! |
@Calvin-L tests are passed! |
fix #60