Thanks for your replay.
I think this problem is not related to length of array. I modified code like this and run via these arguments:
+vm.insn_factory.class=gov.nasa.jpf.symbc.SymbolicInstructionFactory
+vm.classpath=.
+vm.storage.class=
+symbolic.method=foo(sym)
+jpf.report.console.finished=
test1
public class test1 {
// The method you need tests for
public int foo(char[] ca) {
int cnt=0,x=1;
for(int i=0;i<3;i++)
if( ca[i]=='t' )
{
if(x/0==1)
cnt--;
cnt++;
}
return cnt;
}
// The test driver
public static void main(String[] args) {
test1 mc = new test1();
char[] ca="symb".toCharArray();
int x = mc.foo(ca);
Debug.printPC("\nMyClass1.myMethod Path Condition: ");
}
}
but problem yet exists.
Indeed, I aim to test my programs via concolic extension in previous versions. I could run my previous example by Choco ,IAsolver and Coral constraint solver, but the results were not good and generated test cases didn't cover the code completely, so I decided to examine other constraint solvers, but I' m facing that error for Yices and cvc3. Also I don't know how to use Hampi constraint solver for this.