Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foreign function analysis? #1574

Open
WeeknightMVP opened this issue Sep 20, 2023 · 2 comments
Open

foreign function analysis? #1574

WeeknightMVP opened this issue Sep 20, 2023 · 2 comments
Labels
command-line-repl Related to Cryptol's text-based UI feature request Asking for new or improved functionality FFI Foreign function interface remote-api Related to Cryptol's remote API

Comments

@WeeknightMVP
Copy link

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

  • modules with foreign functions but no shared library
  • foreign functions that...
    • have no implementation in a shared library
    • have no fallback (specification)

: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
Copy link
Contributor

qsctr commented Sep 20, 2023

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.

@qsctr qsctr added feature request Asking for new or improved functionality command-line-repl Related to Cryptol's text-based UI remote-api Related to Cryptol's remote API FFI Foreign function interface labels Sep 20, 2023
@weaversa
Copy link
Collaborator

It would also be helpful to have line numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command-line-repl Related to Cryptol's text-based UI feature request Asking for new or improved functionality FFI Foreign function interface remote-api Related to Cryptol's remote API
Projects
None yet
Development

No branches or pull requests

3 participants