import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

@SuppressWarnings("all")
public class BAS_Sample
{
	private final Map<String, String> m = new HashMap<String, String>();

	public void testIfScope(String s)
	{
		Object o = new Object();
		if (s.equals("Foo"))
		{
			s = o.toString();
		}
	}

	public String testFPForScope(String s)
	{
		Object o = new Object();
		while (s.length() > 0)
		{
			o = s.substring(0, 1);
			s = s.substring(1);
		}
		return s;
	}

	public String testFP2Scopes(String s)
	{
		Object o = new Object();
		if (s.equals("Boo"))
        {
            s = o.toString();
        }
        else if (s.equals("Hoo"))
        {
            s = o.toString();
        }

		return s;
	}

	public String test2InnerScopes(String s)
	{
		Object o = new Object();
		if (s != null)
		{
			if (s.equals("Boo"))
            {
                s = o.toString();
            }
            else if (s.equals("Hoo"))
            {
                s = o.toString();
            }
		}

		return s;
	}

	public String testFPLoopCond(List<String> in)
	{
		StringBuilder sb = new StringBuilder();
		for (String s : in)
		{
			sb.append(s);
		}
		return sb.toString();
	}

	public List<String> getList()
	{
		return null;
	}

	public String testSwitch(int a)
	{
		String v = "Test";

		switch (a)
		{
			case 1:
				v = "Testa";
			break;

			case 2:
				v = "Tesseract";
			break;

			case 3:
				v = "Testy";
			break;

			default:
				v = "Rossa";
			break;
		}

		return null;
	}

	public void testFPSync(Set<String> a, Set<String> b)
	{
		String c, d;

		synchronized(this)
		{
			c = a.iterator().next();
			d = b.iterator().next();
		}

		if (d.length() > 0)
		{
			d = c;
		}
	}

	public int testFPObjChange(Calendar c, boolean b)
	{
	    int hour = c.get(Calendar.HOUR_OF_DAY);
	    c.set(2000, Calendar.JANUARY, 1);

	    if (b)
	    {
	        return hour;
	    }

	    return 0;
	}

	public void testFPSrcOverwrite(int src, boolean b)
	{
		int d = src;
		src = 0;

		if (b)
		{
			System.out.println(d);
		}
	}

	public void testFPRiskies1(boolean b) {
		long start = System.currentTimeMillis();

		if (b) {
			long delta = System.currentTimeMillis() - start;
			System.out.println(delta);
		}
	}

	public String testFPIteratorNext(Collection<String> c, boolean b) {
	    Iterator<String> it = c.iterator();

	    String s = it.next();

	    if (b) {
	        if (s == null) {
	            return "yay";
	        }
	    }

	    return it.next();
	}
	
	public List<String> testFPSynchronized(String s, String p) {
	    List<String> l = new ArrayList<String>();
	    String x = s;
	    synchronized(s) {
	        if (p != null) {
	            l.add(p);
	            return l;
	        }  
	    }
	    
	    return null;
	}
}

@@ -2035,24 +2035,201 @@
 return 0;%0A%09%7D
+%0A%09%0A%09public void tstFPRefChange(Holder h1, Holder h2, boolean b) %7B%0A%09    %0A%09    int h = h1.member;%0A%09    h1 = h2;%0A%09    %0A%09    if (b) %0A%09    %7B%0A%09        System.out.println(h);%0A%09    %7D%0A%09%7D
 %0A%0A%09public vo
@@ -3056,10 +3056,57 @@
 ull;%0A%09%7D%0A
+%09%0A%09static class Holder %0A%09%7B%0A%09    int member;%0A%09%7D%0A
 %7D%0A

add another FP for BAS