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

Improve source-mapping #808

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Improve source-mapping #808

wants to merge 19 commits into from

Conversation

lisandrasilva
Copy link
Contributor

This PR imports Simbolik approach to source map bytecode into solidity code.
Fixes #798.

@lisandrasilva lisandrasilva self-assigned this Sep 5, 2024
@lisandrasilva lisandrasilva marked this pull request as ready for review September 9, 2024 11:33
@lisandrasilva lisandrasilva added enhancement New feature or request ux labels Sep 9, 2024
src/kontrol/foundry.py Outdated Show resolved Hide resolved
src/kontrol/solc.py Show resolved Hide resolved
Copy link
Collaborator

@palinatolmach palinatolmach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add an example of how the result of this change looks like to the issue description? E.g., an updated section in the KCFG view.

return self.solidity_src_print(Path(node.source.name), start_line - 1, end_line)
except Exception as e:
return [str(e)]
return ['NO DATA 2']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question about the typo:

Suggested change
return ['NO DATA 2']
return ['NO DATA 2']

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean to add in issue #798 an example of how the source mapping is working after these changes?

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

Successfully merging this pull request may close these issues.

Improve source mapping in Kontrol
3 participants