Skip to content

Commit

Permalink
feat: add --noclean to prevent cleaning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sorawee committed Sep 16, 2023
1 parent e7e77b4 commit 9f785f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion picus.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
(define arg-r1cs #f)
(define arg-circom #f)
(define arg-opt-level #f)
(define arg-clean? #t)
(define arg-timeout 5000)
(define arg-solver "z3")
(define arg-selector "counter")
Expand All @@ -38,6 +39,8 @@
(when (not (string-suffix? arg-circom ".circom"))
(tokamak:exit "file needs to be *.circom"))]
#:once-each
[("--noclean") "do not clean up temporary files (default: false)"
(set! arg-clean? #f)]
[("--opt-level") p-opt-level "optimization level for circom compilation (only applicable for --circom, default: 0)"
(set! arg-opt-level
(match p-opt-level
Expand Down Expand Up @@ -234,4 +237,5 @@
(when (> arg-cex-verbose 0)
(format-cex "other bindings" (order other-info))))

(clean-tmpdir!)
(when arg-clean?
(clean-tmpdir!))

0 comments on commit 9f785f2

Please sign in to comment.