Skip to content

Conversation

@shigoel
Copy link
Contributor

@shigoel shigoel commented Jan 16, 2026

Issue #, if available:
#75

Description of changes:
Create a temporary directory for each verify call and suffix the SMT file names with a counter. Also add a new verbose mode debug, which is a level more than the previous default and also prints the generated SMT file name.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@shigoel shigoel requested a review from a team as a code owner January 16, 2026 02:31
@shigoel shigoel changed the title Create temporary directory for dumping SMT file names Create temporary directory for dumping SMT files Jan 16, 2026
@shigoel shigoel requested a review from joehendrix January 16, 2026 02:33
@shigoel shigoel enabled auto-merge January 16, 2026 02:35
@shigoel shigoel changed the title Create temporary directory for dumping SMT files (Fixes #75) Create temporary directory for dumping SMT files Jan 16, 2026
| .error err =>
.error f!"❌ Type checking error.\n{format err}"
| .ok pEs =>
let tempDir ← IO.toEIO (fun e => f!"{e}") IO.FS.createTempDir
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you want to use IO.FS.withTempDir or try/finally to remove the directory after running the verifier.

If this is intended to just write out the files for later verification, then I think it should take the directory as an argument.

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