(0) Obligation:

JBC Problem based on JBC Program:
Manifest-Version: 1.0 Created-By: 1.6.0_26 (Sun Microsystems Inc.) Main-Class: simple/alternDivWidening/Main
package simple.alternDivWidening;

public class AlternDivWidening {

public static void loop(int i) {
int w = 5;
while (i != 0) {
if (i < -w) {
i--;
i = i*(-1);
} else {
if (i > w) {
i++;
i = i*(-1);
} else {
i = 0;
}
}
w++;
}
}
}


package simple.alternDivWidening;

public class Main {

/**
* @param args
*/
public static void main(String[] args) {
AlternDivWidening.loop(args.length);

}

}


(1) JBCNonTerm (EQUIVALENT transformation)

Reached a loop using the following run:
0:
<simple.alternDivWidening.Main.main||0: load ADDR args||args: a94|| ->
	String.serialVersionUID: -6849794470754667710L
	String.serialPersistentFields: a92
	String.CASE_INSENSITIVE_ORDER: o47
	String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
	RuntimeException.serialVersionUID: -7034897190745766939L
	Exception.serialVersionUID: -3387516993124229948L
	Throwable.serialVersionUID: -3042686055658047285L
	o47!: String$CaseInsensitiveComparator()
	a92([java.io.ObjectStreamField|]): length 0
	a94([java.lang.String...]): length 1
1:
<simple.alternDivWidening.Main.main||1: arraylength|| - ||a94>
	String.serialVersionUID: -6849794470754667710L
	String.serialPersistentFields: a92
	String.CASE_INSENSITIVE_ORDER: o47
	String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
	RuntimeException.serialVersionUID: -7034897190745766939L
	Exception.serialVersionUID: -3387516993124229948L
	Throwable.serialVersionUID: -3042686055658047285L
	o47!: String$CaseInsensitiveComparator()
	a92([java.io.ObjectStreamField|]): length 0
	a94([java.lang.String...]): length 1
2:
<simple.alternDivWidening.Main.main||2: simple.alternDivWidening.AlternDivWidening.loop(I)V|| - ||1>
	String.serialVersionUID: -6849794470754667710L
	String.serialPersistentFields: a92
	String.CASE_INSENSITIVE_ORDER: o47
	String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
	RuntimeException.serialVersionUID: -7034897190745766939L
	Exception.serialVersionUID: -3387516993124229948L
	Throwable.serialVersionUID: -3042686055658047285L
	o47!: String$CaseInsensitiveComparator()
	a92([java.io.ObjectStreamField|]): length 0
	a94([java.lang.String...]): length 1
3:
<simple.alternDivWidening.AlternDivWidening.loop||0: push 5||i: 1|| ->
<simple.alternDivWidening.Main.main||2: simple.alternDivWidening.AlternDivWidening.loop|| - ||1>
	String.serialVersionUID: -6849794470754667710L
	String.serialPersistentFields: a92
	String.CASE_INSENSITIVE_ORDER: o47
	String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
	RuntimeException.serialVersionUID: -7034897190745766939L
	Exception.serialVersionUID: -3387516993124229948L
	Throwable.serialVersionUID: -3042686055658047285L
	o47!: String$CaseInsensitiveComparator()
	a92([java.io.ObjectStreamField|]): length 0
	a94([java.lang.String...]): length 1
4:
<simple.alternDivWidening.AlternDivWidening.loop||1: store INT to w||i: 1||5>
<simple.alternDivWidening.Main.main||2: simple.alternDivWidening.AlternDivWidening.loop|| - ||1>
	String.serialVersionUID: -6849794470754667710L
	String.serialPersistentFields: a92
	String.CASE_INSENSITIVE_ORDER: o47
	String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
	RuntimeException.serialVersionUID: -7034897190745766939L
	Exception.serialVersionUID: -3387516993124229948L
	Throwable.serialVersionUID: -3042686055658047285L
	o47!: String$CaseInsensitiveComparator()
	a92([java.io.ObjectStreamField|]): length 0
	a94([java.lang.String...]): length 1
5:
<simple.alternDivWidening.AlternDivWidening.loop||2: load INT i||i: 1, w: 5|| ->
<simple.alternDivWidening.Main.main||2: simple.alternDivWidening.AlternDivWidening.loop|| - ||1>
	String.serialVersionUID: -6849794470754667710L
	String.serialPersistentFields: a92
	String.CASE_INSENSITIVE_ORDER: o47
	String$CaseInsensitiveComparator.serialVersionUID: 8575799808933029326L
	RuntimeException.serialVersionUID: -7034897190745766939L
	Exception.serialVersionUID: -3387516993124229948L
	Throwable.serialVersionUID: -3042686055658047285L
	o47!: String$CaseInsensitiveComparator()
	a92([java.io.ObjectStreamField|]): length 0
	a94([java.lang.String...]): length 1
In the loop head node, references [i61, i62] were interesting.
By SMT, we could prove
((5 <= initial_i62 and 0 <= initial_i14) and ((((path1_i61 = path1_i67 and path1_i69 = (-1 * path1_i62) and path1_i70 = (path1_i67 + -1) and path1_i73 = (path1_i70 * -1) and path1_i77 = (path1_i62 + 1) and path1_i73 = res_i61 and path1_i77 = res_i62 and path1_i14 = res_i14 and path1_i61 = initial_i61 and path1_i62 = initial_i62 and path1_i14 = initial_i14) and (path1_i67 != 0 and path1_i67 < path1_i69)) or ((path2_i61 = path2_i67 and path2_i69 = (-1 * path2_i62) and 0 = path2_i73 and path2_i77 = (path2_i62 + 1) and path2_i73 = res_i61 and path2_i77 = res_i62 and path2_i14 = res_i14 and path2_i61 = initial_i61 and path2_i62 = initial_i62 and path2_i14 = initial_i14) and (path2_i67 != 0 and path2_i67 >= path2_i69 and path2_i67 <= path2_i62)) or ((path1_i61 = path1_i67 and path1_i69 = (-1 * path1_i62) and path1_i70 = (path1_i67 + -1) and path1_i73 = (path1_i70 * -1) and path1_i77 = (path1_i62 + 1) and path1_i73 = res_i61 and path1_i77 = res_i62 and path1_i14 = res_i14 and path1_i61 = initial_i61 and path1_i62 = initial_i62 and path1_i14 = initial_i14) and (path1_i67 < path1_i69 and path1_i67 < 0)) or ((path1_i61 = path1_i67 and path1_i69 = (-1 * path1_i62) and path1_i70 = (path1_i67 + -1) and path1_i73 = (path1_i70 * -1) and path1_i77 = (path1_i62 + 1) and path1_i73 = res_i61 and path1_i77 = res_i62 and path1_i14 = res_i14 and path1_i61 = initial_i61 and path1_i62 = initial_i62 and path1_i14 = initial_i14) and (path1_i67 < path1_i69 and path1_i67 > 0)) or ((path2_i61 = path2_i67 and path2_i69 = (-1 * path2_i62) and 0 = path2_i73 and path2_i77 = (path2_i62 + 1) and path2_i73 = res_i61 and path2_i77 = res_i62 and path2_i14 = res_i14 and path2_i61 = initial_i61 and path2_i62 = initial_i62 and path2_i14 = initial_i14) and (path2_i67 >= path2_i69 and path2_i67 <= path2_i62 and path2_i67 < 0)) or ((path2_i61 = path2_i67 and path2_i69 = (-1 * path2_i62) and 0 = path2_i73 and path2_i77 = (path2_i62 + 1) and path2_i73 = res_i61 and path2_i77 = res_i62 and path2_i14 = res_i14 and path2_i61 = initial_i61 and path2_i62 = initial_i62 and path2_i14 = initial_i14) and (path2_i67 >= path2_i69 and path2_i67 <= path2_i62 and path2_i67 > 0))) and (((res_i61 = res_i67 and res_i69 = (-1 * res_i62) and res_i70 = (res_i67 + -1) and res_i73 = (res_i70 * -1) and res_i77 = (res_i62 + 1)) and !(res_i67 != 0 and res_i67 < res_i69)) and ((res_i61 = res_i67 and res_i69 = (-1 * res_i62) and 0 = res_i73 and res_i77 = (res_i62 + 1)) and !(res_i67 != 0 and res_i67 >= res_i69 and res_i67 <= res_i62)) and ((res_i61 = res_i67 and res_i69 = (-1 * res_i62) and res_i70 = (res_i67 + -1) and res_i73 = (res_i70 * -1) and res_i77 = (res_i62 + 1)) and !(res_i67 != 0 and res_i67 < res_i69)) and ((res_i61 = res_i67 and res_i69 = (-1 * res_i62) and res_i70 = (res_i67 + -1) and res_i73 = (res_i70 * -1) and res_i77 = (res_i62 + 1)) and !(res_i67 != 0 and res_i67 < res_i69)) and ((res_i61 = res_i67 and res_i69 = (-1 * res_i62) and 0 = res_i73 and res_i77 = (res_i62 + 1)) and !(res_i67 != 0 and res_i67 >= res_i69 and res_i67 <= res_i62)) and ((res_i61 = res_i67 and res_i69 = (-1 * res_i62) and 0 = res_i73 and res_i77 = (res_i62 + 1)) and !(res_i67 != 0 and res_i67 >= res_i69 and res_i67 <= res_i62)))))
to be UNSAT. Consequently, the loop will not terminate.

(2) NO