(0) Obligation:

Need to prove time_complexity of the following program:
public class NonPeriodic {

    public static void main(String args[]) {
	int x = 1, y = 0;

	if (args.length >= 1) {
	    y = -1*args[0].length();
	}

	// does not terminate for x = 1 and y = 1
	while (y > 0)
	    if (x > 0) x = x - 1;
	    else {
		y = y + 1;
		x = y;
	    }
    }
}

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

Constructed TerminationGraph.

(2) Obligation:

Termination Graph based on JBC Program:
NonPeriodic.main([Ljava/lang/String;)V: Graph of 72 nodes with 0 SCCs.


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

Constructed TerminationGraph.

(4) Obligation:

Termination Graph based on JBC Program:
NonPeriodic.main([Ljava/lang/String;)V: Graph of 72 nodes with 0 SCCs.


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

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

(6) Obligation:

Set of 40 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, 57)