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 struct support #2051

Closed
wants to merge 36 commits into from
Closed

Add struct support #2051

wants to merge 36 commits into from

Conversation

iFrostizz
Copy link
Contributor

Adding support for user-defined structs in solc_to_k
Because structs are tuples under the hood https://docs.soliditylang.org/en/latest/abi-spec.html#handling-tuple-types and that they are not tightly packed (two uint8 are taking 2 words in the calldata), we can just recursively unpack the types from the ABI.

@iFrostizz iFrostizz self-assigned this Aug 30, 2023
include/kframework/abi.md Outdated Show resolved Hide resolved
include/kframework/abi.md Outdated Show resolved Hide resolved
include/kframework/abi.md Outdated Show resolved Hide resolved
include/kframework/abi.md Outdated Show resolved Hide resolved
@iFrostizz iFrostizz requested a review from anvacaru September 5, 2023 09:35
@palinatolmach palinatolmach requested review from ehildenb and nwatson22 and removed request for ehildenb and nwatson22 September 25, 2023 14:49
@palinatolmach
Copy link
Contributor

@nwatson22 @ehildenb can I ask for your help with reviewing this PR? @anvacaru and I looked at it, but would like to get your opinion too, when you have time.

@palinatolmach
Copy link
Contributor

Closing as these changes are included in #2136 and runtimeverification/kontrol#78.

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

Successfully merging this pull request may close these issues.

5 participants