You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is in lines before 312 in FunctionHandler, where we compare the parameters of function declaration and function definition (of myFunc).
It seems to me that the comparison is not needed but very helpful to point out bugs in our translation. (very good idea)
The comparison is done on the level of Boogie (reasonable)
The comparison is done by comparing the toString() representations of the parameter types (I don't like that)
The problem is triggered by a function declaration and function implementation that use different ASTType objects that have not the same locations (and location is part of toString()).
Solutions:
Make sure that we have only one ASTType object per C type. (Maybe not doable in our architecture)
Implement visitor for ASTTypes and VarLists that check if two ASTTypes are similar.
Two ASTTypes are similar if all fields but "ILocation loc" and "IBoogieType boogieType" are similar (if applicable) or equivalent (according to equals()). Same definition of similar for VarLists.
I am encountering this SyntaxErrorResult:
on the following code:
Am I missing something or is this a parser bug?
(Running v0.1.16)
The text was updated successfully, but these errors were encountered: