Ptidej-v5.2-master/MoDeC Bytecode Instrumentation Tests/Instrumented Classes/Non-Pattern/ControlStructure/Loops.java
/*
 * (c) Copyright 2001-2004 Yann-Gal Guhneuc,
 * University of Montral.
 * 
 * Use and copying of this software and preparation of derivative works
 * based upon this software are permitted. Any copy of this software or
 * of any derivative work must include the above copyright notice of
 * the author, this paragraph and the one after it.
 * 
 * This software is made available AS IS, and THE AUTHOR DISCLAIMS
 * ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE, AND NOT WITHSTANDING ANY OTHER PROVISION CONTAINED HEREIN,
 * ANY LIABILITY FOR DAMAGES RESULTING FROM THE SOFTWARE OR ITS USE IS
 * EXPRESSLY DISCLAIMED, WHETHER ARISING IN CONTRACT, TORT (INCLUDING
 * NEGLIGENCE) OR STRICT LIABILITY, EVEN IF THE AUTHOR IS ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGES.
 * 
 * All Rights Reserved.
 */
 

/**
 * @author ngjanice
 */
public class Loops {
	
	private static int a;
	
	public static void m1 () 
	{
		//m2();
		a++;
	}
	
	public static void m2()
	{
		a++;
	}
	
public static void main (String args []) {
	for(int counter = 0 ; counter < 5; counter ++){
		a = 0;
		while (a<2)	{
			if(counter == 1)
				break ;
			else if (a < 2)
				m1();				
		}
		if(counter == 2)
			return ;
	}
}

}
