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

Use temporary directory more effectively #34

Merged
merged 2 commits into from
Sep 21, 2023
Merged

Conversation

sorawee
Copy link

@sorawee sorawee commented Sep 16, 2023

Previously, Picus never cleans up smt2 files, and put them all in the top-level temporary directory, causing it to be cluttered with many Picus files.

This commit puts the generated smt2 files in a proper per-run temporary directory (introduced in #33), which by default will also get deleted afterward.

A separate commit adds an ability to retain the temporary files via --noclean in case the user wants to see the generated smt2 files for debugging purposes.

Now that we have a proper per-run temp directory, we can put
generated smt2 files in the temp directory, so that the files do not
clutter the main temp directory, and so that the files will be
cleaned up when Picus finishes execution.
Picus initially never clean up temporary files. However, the last commit
changed this so that temporary files are cleaned up. Sometimes, though,
we really do not want to clean up files (e.g. in order to generate
smt2 files for debugging purposes). This commit adds the flag to
control whether to run the clean up.
Copy link
Collaborator

@shankarapailoor shankarapailoor left a comment

Choose a reason for hiding this comment

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

LGTM

@shankarapailoor shankarapailoor merged commit daa20d1 into Veridise:main Sep 21, 2023
5 checks passed
@sorawee sorawee deleted the tmp branch September 21, 2023 04:22
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.

2 participants