(0) Obligation:
JBC Problem based on JBC Program:
Manifest-Version: 1.0
Created-By: 1.6.0_26 (Sun Microsystems Inc.)
Main-Class: simple/ex02/Main
package simple.ex02;
public class Ex02 {
public static void loop(int i) {
while (i > 0) {
if (i != 5) {
i--;
}
}
}
}
package simple.ex02;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Ex02.loop(args.length);
}
}
(1) JBCNonTerm (EQUIVALENT transformation)
Constructed a run with a repetition. States 3 and 8 are repetitions.
0:
<simple.ex02.Main.main||0: load ADDR args||args: a2|| ->
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o2
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 5
a4([java.io.ObjectStreamField|]): length 0
o2!: String$CaseInsensitiveComparator()
1:
<simple.ex02.Main.main||1: arraylength|| - ||a2>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o2
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 5
a4([java.io.ObjectStreamField|]): length 0
o2!: String$CaseInsensitiveComparator()
2:
<simple.ex02.Main.main||2: simple.ex02.Ex02.loop(I)V|| - ||5>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o2
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 5
a4([java.io.ObjectStreamField|]): length 0
o2!: String$CaseInsensitiveComparator()
3:
<simple.ex02.Ex02.loop||0: load INT i||i: 5|| ->
<simple.ex02.Main.main||2: simple.ex02.Ex02.loop|| - ||5>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o2
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 5
a4([java.io.ObjectStreamField|]): length 0
o2!: String$CaseInsensitiveComparator()
4:
<simple.ex02.Ex02.loop||1: LE 0||i: 5||5>
<simple.ex02.Main.main||2: simple.ex02.Ex02.loop|| - ||5>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o2
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 5
a4([java.io.ObjectStreamField|]): length 0
o2!: String$CaseInsensitiveComparator()
5:
<simple.ex02.Ex02.loop||4: load INT i||i: 5|| ->
<simple.ex02.Main.main||2: simple.ex02.Ex02.loop|| - ||5>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o2
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 5
a4([java.io.ObjectStreamField|]): length 0
o2!: String$CaseInsensitiveComparator()
6:
<simple.ex02.Ex02.loop||5: push 5||i: 5||5>
<simple.ex02.Main.main||2: simple.ex02.Ex02.loop|| - ||5>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o2
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 5
a4([java.io.ObjectStreamField|]): length 0
o2!: String$CaseInsensitiveComparator()
7:
<simple.ex02.Ex02.loop||6: EQ||i: 5||5, 5>
<simple.ex02.Main.main||2: simple.ex02.Ex02.loop|| - ||5>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o2
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 5
a4([java.io.ObjectStreamField|]): length 0
o2!: String$CaseInsensitiveComparator()
8:
<simple.ex02.Ex02.loop||0: load INT i||i: 5|| ->
<simple.ex02.Main.main||2: simple.ex02.Ex02.loop|| - ||5>
String.serialVersionUID: -6849794470754667710L
String.serialPersistentFields: a4
String.CASE_INSENSITIVE_ORDER: o2
String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
RuntimeException.serialVersionUID: -7034897190745766939L
Exception.serialVersionUID: -3387516993124229948L
Throwable.serialVersionUID: -3042686055658047285L
a2([java.lang.String...]): length 5
a4([java.io.ObjectStreamField|]): length 0
o2!: String$CaseInsensitiveComparator()