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

Fix how AST nodes are identified uniquely #267

Open
JulianKemmerer opened this issue Nov 16, 2024 · 0 comments
Open

Fix how AST nodes are identified uniquely #267

JulianKemmerer opened this issue Nov 16, 2024 · 0 comments

Comments

@JulianKemmerer
Copy link
Owner

Code has hash extensions added to it of the form

str_to_hash = str(
    c_ast_node
)  # Doesnt actually identify nodes!
if TEMP_HACKY_C_AST_NODE_ID:
    str_to_hash = str(id(c_ast_node))

where currently the hack of using python object id is used instead of being able to identify the node actually by its position in AST

makes hash codes change unnecessarily when C code has not changed

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