GaloisInc / cryptol

Cryptol: The Language of Cryptography
https://galoisinc.github.io/cryptol/master/RefMan.html
BSD 3-Clause "New" or "Revised" License
1.14k stars 126 forks source link

`foreign` function analysis? #1574

Open WeeknightMVP opened 1 year ago

WeeknightMVP commented 1 year ago

Can the Remote API or another tool identify ...?

:browse in the REPL and focused_module and names methods of CryptolConnection in the Remote API do not report these. :file-deps and file_deps respectively report a foreign dependency when a shared library is present, but when absent this field is empty, as it would be for a module with no foreign functions.

qsctr commented 1 year ago

I don't think this information is currently exposed anywhere (other than the warning messages shown when loading a module with missing foreign implementations) but it would not be too hard to add it.

weaversa commented 1 year ago

It would also be helpful to have line numbers.