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