(0) Obligation:
JBC Problem based on JBC Program:
Manifest-Version: 1.0
Created-By: 1.6.0_16 (Sun Microsystems Inc.)
Main-Class: TestJulia1
/**
* Method main() diverges.
*/
public class TestJulia1 {
private TestJulia1 tail;
public static void main(String[] args) {
TestJulia1 tj = new TestJulia1(), old;
do {
old = tj;
try {
tj = tj.tail;
tj.test();
}
catch (NullPointerException ee) {
tj = old;
}
}
while (tj != null);
}
private void test() {}
}
(1) JBCNonTerm (EQUIVALENT transformation)
Reached a loop using the following run:
0:
<TestJulia1.main||0: New TestJulia1|| - || ->
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o1
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 0
a4([java.io.ObjectStreamField|]): length 0
o1!: String$CaseInsensitiveComparator()
1:
<TestJulia1.main||3: DUP|| - ||o50>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o1
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 0
a4([java.io.ObjectStreamField|]): length 0
o1!: String$CaseInsensitiveComparator()
o50!: TestJulia1(tail=#)
2:
<TestJulia1.main||4: TestJulia1.<init>()V|| - ||o50, o50>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o1
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 0
a4([java.io.ObjectStreamField|]): length 0
o1!: String$CaseInsensitiveComparator()
o50!: TestJulia1(tail=#)
3:
<TestJulia1.<init>||0: load ADDR #0||#0: o50|| ->
<TestJulia1.main||4: TestJulia1.<init>|| - ||o50, o50>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o1
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 0
a4([java.io.ObjectStreamField|]): length 0
o1!: String$CaseInsensitiveComparator()
o50!: TestJulia1(tail=#)
4:
<TestJulia1.<init>||1: java.lang.Object.<init>()V|| - ||o50>
<TestJulia1.main||4: TestJulia1.<init>|| - ||o50, o50>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o1
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 0
a4([java.io.ObjectStreamField|]): length 0
o1!: String$CaseInsensitiveComparator()
o50!: TestJulia1(tail=#)
5:
<TestJulia1.<init>||4: return|| - || ->
<TestJulia1.main||4: TestJulia1.<init>|| - ||o50, o50>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o1
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 0
a4([java.io.ObjectStreamField|]): length 0
o1!: String$CaseInsensitiveComparator()
o50!: TestJulia1(tail=#)
6:
<TestJulia1.main||7: store ADDR to #1|| - ||o50>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o1
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 0
a4([java.io.ObjectStreamField|]): length 0
o1!: String$CaseInsensitiveComparator()
o50!: TestJulia1(tail=#)
7:
<TestJulia1.main||8: load ADDR #1||#1: o50|| ->
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o1
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 0
a4([java.io.ObjectStreamField|]): length 0
o1!: String$CaseInsensitiveComparator()
o50!: TestJulia1(tail=#)
In the loop head node, references [] were interesting.
By SMT, we could prove
(0 <= initial_i1 and (((path1_i1 = res_i1 and path1_i1 = initial_i1) and T) and (T and F)))
to be UNSAT. Consequently, the loop will not terminate.