(0) Obligation:

Need to prove time_complexity of the following program:
public class IntPath {
    public static void main(int i) {
		int x = 0;
		int y = 0;
		if (i > 10) {
			x = 1;
		} else {
			y = 1;
		}
		while (x == y);
    }
}


(1) JBCToGraph (BOTH CONCRETE BOUNDS(ID, ID) transformation)

Constructed TerminationGraph.

(2) Obligation:

Termination Graph based on JBC Program:
IntPath.main(I)V: Graph of 47 nodes with 0 SCCs.


(3) JBCToGraph (BOTH CONCRETE BOUNDS(ID, ID) transformation)

Constructed TerminationGraph.

(4) Obligation:

Termination Graph based on JBC Program:
IntPath.main(I)V: Graph of 47 nodes with 0 SCCs.


(5) TerminationGraphToComplexityProof (BOTH CONCRETE BOUNDS(ID, ADD(15)) transformation)

Extracted set of 31 edges for the analysis of TIME complexity. Kept leaves.

(6) Obligation:

Set of 31 edges based on JBC Program.
Performed SCC analyses:
  • Used field analysis yielded the following read fields:

Considered paths: nonterm paths and paths from start to sinks

(7) TerminationGraphToComplexityProof (EQUIVALENT transformation)

Proven constant complexity by absence of SCCs and edges with non-constant weight

(8) BOUNDS(CONSTANT, 36)