package gov.nasa.jpf.symbc.bitop;
public class TestBitwiseLOR {
public void test(long x, long y) {
long z = x | y;
if(z == 0) {
System.out.println("Branch one");
} else {
System.out.println("Branch two");
}
}
public static void main (String[] args) {
long x = 0;
long y = 1;
TestBitwiseLOR testLOR = new TestBitwiseLOR();
testLOR.test(x, y);
}
}
Is this working correctly?
My assumption is that the second constraint resolution will output Branch one.
By the way, I can get the expected result by setting the variables used in TestBitwiseLOR.java to int type.
In other words, can't it be parsed correctly for long types?
It would be very helpful if you could tell me the cause of the problem.
If the cause is in SymbolicPathFinder, I would like to fix it myself and submit a PR.
Hi I run the tests TestBitwiseLOR.jpf, but I am not able to switch the branching. It uses the latest versions of jpf-core and jpf-symbc.
TestBitWiseLOR.jpf:
TestBitwiseLOR.java:
result:
Is this working correctly? My assumption is that the second constraint resolution will output
Branch one
. By the way, I can get the expected result by setting the variables used in TestBitwiseLOR.java to int type.In other words, can't it be parsed correctly for long types? It would be very helpful if you could tell me the cause of the problem. If the cause is in SymbolicPathFinder, I would like to fix it myself and submit a PR.
Can someone give me some advice?
thank you.