(0) Obligation:
JBC Problem based on JBC Program:
Manifest-Version: 1.0
Created-By: 1.6.0_26 (Sun Microsystems Inc.)
Main-Class: simple/whileIncr/Main
package simple.whileIncr;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
WhileIncr.increase(args.length);
}
}
package simple.whileIncr;
public class WhileIncr {
public static void increase(int i) {
while (i > 0) {
i++;
}
}
}
(1) JBCNonTerm (EQUIVALENT transformation)
Reached a loop using the following run:
0:
<simple.whileIncr.Main.main||0: load ADDR args||args: a34|| ->
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a32
String.CASE_INSENSITIVE_ORDER: o17
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
o17!: String$CaseInsensitiveComparator()
a32([java.io.ObjectStreamField|]): length 0
a34([java.lang.String...]): length 1
1:
<simple.whileIncr.Main.main||1: arraylength|| - ||a34>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a32
String.CASE_INSENSITIVE_ORDER: o17
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
o17!: String$CaseInsensitiveComparator()
a32([java.io.ObjectStreamField|]): length 0
a34([java.lang.String...]): length 1
2:
<simple.whileIncr.Main.main||2: simple.whileIncr.WhileIncr.increase(I)V|| - ||1>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a32
String.CASE_INSENSITIVE_ORDER: o17
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
o17!: String$CaseInsensitiveComparator()
a32([java.io.ObjectStreamField|]): length 0
a34([java.lang.String...]): length 1
3:
<simple.whileIncr.WhileIncr.increase||0: load INT i||i: 1|| ->
<simple.whileIncr.Main.main||2: simple.whileIncr.WhileIncr.increase|| - ||1>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a32
String.CASE_INSENSITIVE_ORDER: o17
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
o17!: String$CaseInsensitiveComparator()
a32([java.io.ObjectStreamField|]): length 0
a34([java.lang.String...]): length 1
In the loop head node, references [i9] were interesting.
By SMT, we could prove
((0 <= initial_i9 and 0 <= initial_i8) and (((path1_i9 = path1_i22 and path1_i25 = (path1_i22 + 1) and path1_i25 = res_i9 and path1_i8 = res_i8 and path1_i9 = initial_i9 and path1_i8 = initial_i8) and path1_i22 > 0) and ((res_i9 = res_i22 and res_i25 = (res_i22 + 1)) and !res_i22 > 0)))
to be UNSAT. Consequently, the loop will not terminate.