summaryrefslogtreecommitdiff
path: root/compiler/ExtractBase.ml (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-06-29had some fun writing an IsabelleHOL backendstuebinm1-25/+83
(do not actually use this, most things are broken, and the primitives lib barely exists and is simply incorrect. But it is enough to create syntax-correct Isabelle code for relatively simply rust code, as long as it does not contain any uses of traits)
2024-06-28Remove redundant `llbc_name` fieldNadrieril1-8/+9
It's redundant with `item_meta.name`
2024-06-24Update charonNadrieril1-19/+24
2024-06-18Support for renaming using the rename attribute in charon (#239)Escherichia1-51/+136
* support for renaming using the rename attribute in charon * support for global decl * add support for renaming field * applied suggested changes and began adding support for variant * finished support for renaming variant * applied suggested changes * add tests * fixed variant and field renaming * update charon-pin * update flake.lock * Update the charon pin * Fix an issue with renaming trait method implementations * Fix an issue with the renaming of trait implementations * Fix an issue when renaming enumerations * Update the Charon pin * Fix the F* tests * Fix an issue with the spans for the loops * Fix the tests * Update a comment * Use fuel in the coq tests * Generate the template decreases clauses by default --------- Co-authored-by: Escherichia <escherichia@charlotte> Co-authored-by: Son Ho <hosonmarc@gmail.com>
2024-06-12Revert "Fix some mistakes"Son Ho1-2/+0
This reverts commit f05a0faf14fdd558039da52624d57028eb64f9fd.
2024-06-12Fix some mistakesSon Ho1-0/+2
2024-06-05Fix a minor issueSon Ho1-0/+1
2024-06-05Fix a minor issueSon Ho1-0/+1
2024-06-05Add an option to run Aeneas as a borrow checkerSon Ho1-36/+36
2024-05-28Fix an issue with some names being ignored when generating unique variable namesSon Ho1-21/+19
2024-05-24Rename meta into spanAymeric Fromherz1-165/+165
2024-04-18fix(backends/lean): extract more keywords from `lstlean.tex`Ryan Lahfa1-0/+2
Taken from https://github.com/leanprover/lean4/blob/master/doc/latex/lstlean.tex#L33 and https://github.com/leanprover/lean4/blob/master/doc/latex/lstlean.tex#L36-L43. This will not extract the tactics. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr>
2024-04-18fix(backends/lean): extract more keywords from `lstlean.latex`Ryan Lahfa1-0/+62
Taken from https://github.com/leanprover/lean4/blob/master/doc/latex/lstlean.tex#L12 and sorted. Tactics are ignored. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr>
2024-04-18item_metaNadrieril1-4/+5
2024-04-17chore(backends/lean): sort the keyword listRyan Lahfa1-4/+4
OCD. :D Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr>
2024-04-17fix(backends/lean): `from` is a keywordRyan Lahfa1-0/+1
Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr>
2024-04-17fix(backends/lean): `as` is a keywordRyan Lahfa1-0/+1
`as` is a reserved keyword and cannot be used as a variable name. Fixes #139. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr>
2024-04-04Update the extractionSon Ho1-4/+4
2024-04-04Fix a minor issueSon Ho1-1/+1
2024-04-04Update the names of the synthesized backward functionsSon Ho1-2/+4
2024-04-04Update a commentSon Ho1-3/+5
2024-04-04Make a minor modificationSon Ho1-2/+4
2024-04-04Make minor modificationsSon Ho1-15/+21
2024-04-03rebased branchEscherichia1-13/+19
2024-04-03Added meta information to names_map_id field in names_map typeEscherichia1-22/+23
2024-04-03resolved requested changesEscherichia1-1/+0
2024-04-03resolved requested changesEscherichia1-1/+1
2024-04-03added Error and EError to expressions and propagated related changesEscherichia1-1/+3
2024-03-29formatting and changed save_error condition for failing from b to not bEscherichia1-4/+3
2024-03-29added file and line arg to craise, cassert and all related functionsEscherichia1-3/+3
2024-03-29added file and line arg to craise and cassertEscherichia1-16/+17
2024-03-28Revert some changes which shouldn't be hereSon Ho1-6/+5
2024-03-28formattingEscherichia1-104/+133
2024-03-28changes after git rebase mainEscherichia1-8/+16
2024-03-28Should answer all comments, there are still some TODO: error message leftEscherichia1-46/+42
2024-03-28Added sanity_check and sanity_check_opt_meta helpers and changed sanity ↵Escherichia1-1/+1
checks related cassert to these helpers to have a proper error message
2024-03-28changes to extract_ty and related functions to use the right metaEscherichia1-18/+11
2024-03-28added a meta option field to norm_ctx and changed the meta used by some ↵Escherichia1-1/+0
assert to the norm_ctx one
2024-03-28Replaced some unclear TODOs error message placeholder by clearer TODOs, they ↵Escherichia1-2/+2
were forgotten before last push
2024-03-28Still need to fill the TODO: error message and check some meta but it buildsEscherichia1-39/+39
2024-03-28WIP: translate.ml and extract.ml do not compile. Some assert left to do and ↵Escherichia1-136/+139
we need to see how translate_crate can give meta to the functions it calls
2024-03-17Update following changes in CharonSon Ho1-1/+1
2024-03-11Update the generation of namesSon Ho1-6/+15
2024-03-10Update the name generation and add CLI to print external pat namesSon Ho1-6/+12
2024-03-08Make progress on propagating the changesSon Ho1-139/+22
2024-03-08Remove the option to split fwd/back functions and update SymbolicToPureSon Ho1-59/+23
2024-03-08Update the code generationSon Ho1-2/+6
2023-12-22Fix minor issuesSon Ho1-27/+54
2023-12-21Use indices starting at 1 to make variable names unique at code genSon Ho1-1/+1
2023-12-13Update the extraction to handle casts between integers/boolsSon Ho1-1/+9