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

Add functions passed as (function pointer) arguments to the functions lookup array #55

Open
jberthold opened this issue Mar 13, 2025 · 0 comments

Comments

@jberthold
Copy link
Member

Related: runtimeverification/mir-semantics#488

Sometimes functions are called via function pointers instead of as constants in MIR. Therefore, the functions array must be populated with these function items that are (potentially) called via pointers (currently only constants from func in TerminatorKind::Call are added to the array).

Rather than trying to go backwards from the Call terminator, this should be done by inspecting arguments of function calls to determine whether they are function pointers, and adding those (they may potentially be called later after being passed on to other callees in a chain of calls).

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

No branches or pull requests

1 participant