Skip to content

Conversation

@Stevengre
Copy link
Contributor

The call_edges method now collects both:

  1. Direct calls: functions used as the func operand in Call terminators
  2. Indirect calls: functions passed as arguments (ZeroSized constants) that may be called via function pointers

This fixes the 'unknown function' issue when a function is passed as an argument to higher-order functions like Result::map.

The call_edges method now collects both:
1. Direct calls: functions used as the func operand in Call terminators
2. Indirect calls: functions passed as arguments (ZeroSized constants)
   that may be called via function pointers

This fixes the 'unknown function' issue when a function is passed as
an argument to higher-order functions like Result::map.
@Stevengre Stevengre self-assigned this Dec 16, 2025
@jberthold
Copy link
Member

👍 Good catch finding this! Maybe #897 should include this?

@jberthold jberthold merged commit 9b38e26 into master Dec 16, 2025
7 checks passed
@jberthold jberthold deleted the jh/unkown-function branch December 16, 2025 23:07
jberthold added a commit that referenced this pull request Dec 17, 2025
- #893 
- #892 
- #894 
- #896 
- [update spl/p-token.md to use
#execTerminatorCall](39ce2a6)
- #898
jberthold pushed a commit to runtimeverification/solana-token that referenced this pull request Dec 17, 2025
- Python tool updates
runtimeverification/mir-semantics#893 ,
runtimeverification/mir-semantics#892
- Function pointer support
runtimeverification/mir-semantics#894
- Stable-MIR-JSON update
runtimeverification/mir-semantics#896,
runtimeverification/mir-semantics#898
- [update spl/p-token.md to use

#execTerminatorCall](runtimeverification/mir-semantics@39ce2a6)
- Add --fail-fast and --maintainence-rate pyk flags (Add --fail-fast and
--maintainence-rate pyk flags #900)
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

Successfully merging this pull request may close these issues.

2 participants