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

saw-script should let you specify initial values of function-pointer arguments #175

Closed
brianhuffman opened this issue Feb 8, 2017 · 2 comments
Labels
type: enhancement Issues describing an improvement to an existing feature or capability

Comments

@brianhuffman
Copy link
Contributor

The llvm_assert_eq command lets you specify the initial value of an LLVM variable, but only for basic types (ints; arrays or structs of ints) that are given as Cryptol expressions.

We need a similar command for function pointer arguments, where we can specify the initial value as an LLVM function name. (It might also be useful to have another command variant that takes a Cryptol expression of the appropriate function type instead.)

@brianhuffman
Copy link
Contributor Author

brianhuffman commented Feb 14, 2017

Commit 75feac1 in the crucible-integration branch adds a saw-script function crucible_global that should eventually be able to do what we want. Given a string, it returns a pointer value that points to the named global constant. However, it currently works only for pointers to data, and not function pointers.

@atomb atomb added the type: enhancement Issues describing an improvement to an existing feature or capability label May 2, 2017
@brianhuffman
Copy link
Contributor Author

As of 9a8198e, crucible_global also works with function names.

brianhuffman pushed a commit that referenced this issue Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Issues describing an improvement to an existing feature or capability
Projects
None yet
Development

No branches or pull requests

2 participants