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

Issue to understand the log #698

Closed
GabrielHerry opened this issue Jun 26, 2020 · 3 comments
Closed

Issue to understand the log #698

GabrielHerry opened this issue Jun 26, 2020 · 3 comments

Comments

@GabrielHerry
Copy link

GabrielHerry commented Jun 26, 2020

Hello,

My error is certainly obvious but behind that, I wonder how I can understand-interpret better the result of the JML-log & JML-Trace with OpenJML Eclipse plugin and z3_4_3.

Here my code and JML-log :

`package jmltest;

import java.util.ArrayList;

public class ListTest {

private final /*@ spec_public  @*/ ArrayList<String> mylist;

public /*@ pure @*/ ArrayList<String> getMylist() {

	return mylist;}

public ListTest() {

	mylist = new ArrayList<String>();}

//@ ensures  \old(getMylist()).size() + 1 == getMylist().size()  ; 

public void addStringInList(String a){

	this.mylist.add(a);

}

}
`

And the log say to me :
JmlLogInterpretation

I wonder how I can understand better what my JML console says.
Here apparently getMylist().size() return 8945 before the method and 8947 after.
In there a way to display in the log the value of "String a" it is used in the counter-example?
Another way to say it : is there a way to display object behind reference, here : by reference I mean REF!val!64 , REF!val!68 and also this one : _JML__tmp448 .

If there are other place / forums to exchange about openJML let me know.

Thanks a lot,

@davidcok
Copy link
Member

davidcok commented Jun 26, 2020 via email

@davidcok
Copy link
Member

davidcok commented Jun 26, 2020 via email

@GabrielHerry
Copy link
Author

Ok, that working,
thank you very much for these answers!

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