Skip to content
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

Implement serialization/deserialization of new algorithm #1051

Merged
merged 33 commits into from
May 14, 2024

Conversation

dwightguth
Copy link
Collaborator

@dwightguth dwightguth commented May 9, 2024

This PR implements a new version of the proof hint, version 9, which uses the newly created serialization and deserialization functions to serialize terms during the proof hint generation. Not only does this new serialization format take up less memory, it also is roughly 3x faster to serialize.

Note: there is one known issue with this serializer/deserializer: it incorrectly specifies the second sort parameter of the inj symbol when deserializing. We choose to ignore this known issue due to the fact that this deserializer is being consumed solely by code which transforms the resulting terms into an order-sorted representation by removing the injections entirely.

@rv-jenkins rv-jenkins changed the base branch from master to develop May 9, 2024 18:00
@dwightguth dwightguth marked this pull request as ready for review May 13, 2024 20:10
Copy link
Collaborator

@Robertorosmaninho Robertorosmaninho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, it looks good to me. I asked some questions and asked for some comments to understand the code better now and in the future. A small change is needed on the kore-proof-trace. I would also like some // TODO: pointing to the known issue of deserializing inj with the wrong second argument.

include/kllvm/binary/ProofTraceParser.h Outdated Show resolved Hide resolved
include/runtime/header.h Show resolved Hide resolved
lib/ast/definition.cpp Outdated Show resolved Hide resolved
lib/binary/deserializer.cpp Show resolved Hide resolved
tools/kore-proof-trace/main.cpp Show resolved Hide resolved
Copy link
Collaborator

@Robertorosmaninho Robertorosmaninho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still would like to see the TODOs pointing to the known issue with deserializing inj, but overall, it LGTM!

Copy link
Collaborator

@theo25 theo25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me

@dwightguth dwightguth enabled auto-merge (squash) May 14, 2024 18:57
@dwightguth dwightguth merged commit 78cf581 into develop May 14, 2024
9 checks passed
@dwightguth dwightguth deleted the visit_with_tags branch May 14, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants