-
Notifications
You must be signed in to change notification settings - Fork 8
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
Extend integer comparison to support floats / Add additional magic methods to the allowed whitelist #182
Conversation
Include additional whitelisted names for magic dunderscore functions as needed for external project.
@marcoeilers There must be some typo somewhere, but I've stared at it for a while and I can't find it. |
You can add
after
|
Uninterpreted versions of float comparison functions refer to the respective integer comparisons if the operands are actually integers. The integer comparison functions expect their parameters to still be boxed types, so the float functions should not unbox the arguments.
@marcoeilers Are circular dependencies in the preamble.index file an issue by any chance? |
No, I don't think so. |
I think I found the mistake I've made. Some test programs fail to translate after I've adjusted the int type functions, but as far I can see, this only happens to SIF test cases. So I guess I have to make the same changes to the other preamble.index file loaded when enabling SIF mode, is that right? |
Since integer comparison functions reference the equivalent float versions of those functions, the definitions of the float type functions need to be included in the translation output in SIF mode too. The relevant file paths are added to the include list in the SIF mode version of all.sil
@marcoeilers Alright, should be ready now. |
This change is