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

repair symbolic Array testcases #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/examples/arrays/Arrays.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ public static int counter_bis(int i, int[] arr) {
}

public static int check_length(int i, int[] arr) {
arr[0]=0;
int j = arr.length;
int a = arr[1];
int b = 10/j;
if(arr[i]>0){
System.out.println("yy");
}
return b;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public class SequenceChoiceGenerator extends gov.nasa.jpf.vm.choice.IntIntervalG

private String methodShortName;
private Object [] argValues;
private Object [] attributes;
private Object [] attributes;
private String[] argTypes;

@Override
public ChoiceGenerator randomize() {
Expand All @@ -74,6 +75,9 @@ public SequenceChoiceGenerator(String _methodShortName) {
public Object [] getArgValues() {
return argValues;
}
public String [] getArgTypes() {
return argTypes;
}

public void setArgValues(Object [] _argValues) {
argValues = _argValues;;
Expand All @@ -82,7 +86,9 @@ public void setArgValues(Object [] _argValues) {
public Object [] getArgAttributes() {
return attributes;
}

public void setArgTypes(String [] _argTypes) {
argTypes = _argTypes;
}
public void setArgAttributes(Object [] _attributes) {
attributes = _attributes;
}
Expand Down
Loading