branch suggestion: create proof files from template #63
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/create-proof-files"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Suggestion branch for
feature/create-spec-from-template.What it does
verif_<file>.vper C file with annotations from theverif/spec/loop/prooftemplates.PROOFlinks: the lemma keeps the linked name, and a proof linked to another document is generated in that document rather than beside the spec.src/templatesand ships them through a.vscodeignoreexception.Why the command layer was restructured
createRocqModel) so the command and the annotation mapping can run innpm run test:unit; before, the unit test failed to load (MODULE_NOT_FOUND: vscode).Known limitations
PROOFlink pointing at a document that does not exist generates a proof-only document; that file references a spec defined elsewhere and will not compile on its own.npm run check,npm run test:unitandnpm run test:integrationpass.1796da2e719d5e44b110WIP: branch suggestion: create spec from templateto branch suggestion: create spec from template@ -22,0 +22,4 @@# The proof templates are read from disk at run time, so they are the one# thing under `src/` that must survive packaging. Re-include only the `.eta`# files: the `.ts` template argument interfaces stay out via `**/*.ts`.!src/templates/*.etaI would do !src/templates//*.eta or just !/*.eta, so that the files are also allowed to be nested in deeper folders without having to change this further
@ -35,3 +23,1 @@*/export async function triggerOnDocumentOpen(path: Uri): Promise<void> {await workspace.openTextDocument(path).then();try {why change this, it does exactly the same thing, and has just been changed for the hell of it?
@ -47,3 +41,1 @@const lastIndex = fileName.lastIndexOf('.');if (lastIndex === -1) return fileName;return fileName.substring(0, lastIndex);const { name } = parse(path.fsPath);technically better but harder to understand that Uri destructs to the name of the file
i would do it more explicit with
const name = parse(path.fsPath).nameif it has to be changedbranch suggestion: create spec from templateto WIP: branch suggestion: create spec from templateWIP: branch suggestion: create spec from templateto branch suggestion: create spec from templatebranch suggestion: create spec from templateto branch suggestion: create proof files from template