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

crucible: Typed overrides #1135

Closed
langston-barrett opened this issue Nov 16, 2023 · 0 comments · Fixed by #1136
Closed

crucible: Typed overrides #1135

langston-barrett opened this issue Nov 16, 2023 · 0 comments · Fixed by #1136
Assignees
Labels

Comments

@langston-barrett
Copy link
Contributor

Several Crucible frontends (jvm, llvm, go) make use of types that include:

  • An override "handler", with a type like forall bak. IsSymBackend sym bak => bak -> Ctx.Assignment (RegValue sym) args -> OverrideSim p sym ext rtp args ret (RegValue sym ret)
  • A CtxRepr args
  • A TypeRepr ret

Several language extensions make use of the LLVM memory model (e.g., LLVM, WASM, and Macaw), and could concievably share override implementations relating to memory. One could also imagine sharing implementations of overrides like crucible_assert. To make this task easier, it would be nice to unify these notions of "typed overrides", by adding a type to the base Crucible library and using it in the different frontends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant