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

Handling null initializations #7

Closed
asoifer opened this issue Aug 12, 2021 · 3 comments
Closed

Handling null initializations #7

asoifer opened this issue Aug 12, 2021 · 3 comments

Comments

@asoifer
Copy link

asoifer commented Aug 12, 2021

Hi again,
I think that I'll be your main slicer tester.
This is because I'm working on my own dynamic slicer and I'm performing several tests.

In this case, I'll use the same case as before, TreeAdd.
I developed a comparer for helping me to characterize the difference between different slicers.

I'm slicing from line 53 in TreeAdd.java with the same parameters as before "-l 2".

In this picture, lines from 101 to 106 are in the slice, and this is OK!
image

But in this picture, lines 54 and 55 are not in the slice.
At the left is my slicer, in the middle Javaslicer, in the right Slcier4j (I used the same for comparing to ORBS).
image

Probably, I guess, this is because the compiler omits those lines (since null values are the default ones...).
I don't know if this is easy or not to solve,

Anyway, I'll upload more "issues" as soon, I hope the best for this tool,
And if you need some help I can help :)
Regards.

@asoifer
Copy link
Author

asoifer commented Aug 12, 2021

I'm sorry,
I've seen that you don't really need those lines... since you don't execute the body in that conditions.
I have other cases, but in this case the tool is ok!

@asoifer asoifer closed this as completed Aug 12, 2021
@khaled-e-a
Copy link
Collaborator

Thank you for testing Slicer4J, really appreciate it! Looking forward for the other issues :)
Are you using a some program to automatically highlight the slices? This highlighting looks cool and would be awesome to have in Slicer4J

@asoifer
Copy link
Author

asoifer commented Aug 13, 2021

Yes, I developed some programs for running, processing, and understanding the slices.
Lets talk by email,
See u!

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

2 participants