-
Notifications
You must be signed in to change notification settings - Fork 23
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
Introducing Ordinal
KORE Attribute
#1053
Conversation
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.
this looks okay but I would want to make sure we've tested that the resulting attribute can be successfully grabbed by the python code that is consuming this before we merge this.
Replacing magic numbers with new approach for testing
Replacing magic numbers with new approach for testing
@dwightguth, I added some Python tests that use the new ordinal attribute.
|
I think the ordinal attribute approach is fine; this is ultimately testing infrastructure and so the performance of a string comparison isn't critical. Avoiding modifications of the K source code is nice. |
…ore definition generation (#1059) We have seen that the `definition.kore` has been produced in a different order depending on the OS, which creates a flaky error for some tools like `llvm-komplie-compute-ordinal` and `llvm-kompile-compute-loc`, an error on #1053 MacOS tests, and some frontend errors as well. This PR aims to fix that issue by replacing the data structure used to store the attributes.
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.
One small change; otherwise good - feel free to merge once you've addressed it.
Closes https://github.com/Pi-Squared-Inc/pi2/issues/1432
This PR introduces a new attribute specific to the LLVM Backend. It includes the
ordinal
attribute to the KORE definition whenpreprocess
is called after parsing a definition. The content of the attribute is astring_sort
with the value of the computedaxiom_ordinal
.A new C++ tool is planned to consume this feature instead of reading a definition with a bash script.
The main intention of this feature is to expose this information to the Python bindings to be used in Proof Hints integration tests.