-
Notifications
You must be signed in to change notification settings - Fork 16
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
Incorrect slices #31
Comments
Okay so, after building srcSlice from master, the slice might still be slightly incorrect on the above example:
I expected variable These are still better than the results from my original post, but what I got was still slightly different than what I expected. Please let me know if I'm interpreting this incorrectly. Thanks |
Yes, there have been several updates to srcML which may affect the quality of srcSlice output, beside the known bugs that already existed. The tool needs maintenance and I have very little time to give it the attention it needs. I will be working on it some in the last couple weeks before the semester begins again. We will see how much I am able to complete. |
Understandable, thanks for the reply. If there are any specific issues or features of srcSlice that you can elaborate on, I would be happy to take a look and submit pull requests where I can. |
Produces incorrect slices given the following source code (line numbers included for clarity):
Produces the following srcSlice output:
In the first line of the srcSlice output,
n
is correctly defined and used. However, I also expected n to appear incfuncs{foo(1)}
. Additionally, variablev
is incorrectly stated to be used on lines 2 & 4 which appears to actually be where variablex
should be used.Is this the expected output? If not, is this resolved when building most recent version from source?
To be clear, I downloaded prebuilt srcML from https://www.srcml.org/#download and prebuilt srcSlice from https://www.srcml.org/tools.html
To produce the above, I used the following commands:
$ srcml example.cpp --position -o example.xml $ srcslice example.xml > example.slice $ cat -n example.slice
The text was updated successfully, but these errors were encountered: