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

Shared memory writer for proof hints #1122

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Shared memory writer for proof hints #1122

merged 3 commits into from
Jul 31, 2024

Conversation

theo25
Copy link
Collaborator

@theo25 theo25 commented Jul 29, 2024

This PR adds a subclass of the abstract proof_trace_writer for outputting hints into a ringbuffer that lives in shared memory. This output method is intended to be used with the shared memory option of the kore-proof-trace parser to communicate hints through shared memory instead of through a file.

Since we now can test the shared memory based proof generation/consumption loop, we also do not include the helper kore-proof-trace-shm-writer tool in the installation.

@rv-jenkins rv-jenkins changed the base branch from master to develop July 29, 2024 21:39
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.

LGTM, one minor question unrelated to the PR, but I would like to take this chance to double-check it.

set_up_shm_writer(output_filename);
return;
}

output_file = fopen(output_filename, "a");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we though about this append mode here? What are your thoughts @theo25 and @dwightguth?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@dwightguth Any comment on why this has to be an append flag? I kept it as an append because it was like so in the main.ll from where the file open was moved.

@dwightguth dwightguth changed the title Shared memory wirter for proof hints Shared memory writer for proof hints Jul 31, 2024
@rv-jenkins rv-jenkins merged commit 965655e into develop Jul 31, 2024
21 checks passed
@rv-jenkins rv-jenkins deleted the hints-shm-writer branch July 31, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants