package com.github.sevntu.checkstyle.checks.coding;
public class testUBV {
    int f1() {
        int x = 0;
        for (int i = (0+1); ((i) < (6+6)); i += (1+0)) {
            x += (i + 100);
            (x) += (i + 100);
            x = (x + i + 100);
            (x) = (x + i + 100);
        }

        for (int i = (0+1); (i) < ((6+6)); i += (1+0)) {
            System.out.println("hi");
        }

        return (0);
    }

    private int f2(int arg1, double arg2) {
        int x, a, b, c, d;
        String e, f;

        x = 0;
        a = 0;
        b = 0;
        c = (a + b);
        d = c - 1;

        int i = (int) arg2;
        i = ((int) arg2);

        x += (i + 100 + arg1);
        a = (a + b) * (c + d);
        b = ((((a + b) * (c + d))));
        c = (((a) <= b)) ? 0 : 1;
        d = (a) + (b) * (600) / (int) (12.5f) + (int) (arg2);
        e = ("this") + ("that") + ("is" + "other");
        f = ("this is a really, really long string that should be truncated.");

        return (x + a + b + d);
    }

    private boolean f3() {
        int x = f2((1), (13.5));
        boolean b = (true);
        return (b);
    }

    public static int f4(int z, int a) {
        int r = (z * a);
        r = (a > z) ? a : z;
        r = ((a > z) ? a : z);
        r = (a > z) ? a : (z + z);
        return (r * r - 1);
    }

    public void f5() {
        int x, y;
        x = 0;
        y = 0;
        if (x == y) {
            print(x);
        }
        if ((x > y)) {
            print(y);
        }

        while ((x < 10)) {
            print(x++);
        }

        do {
            print((y+=100));
        } while (y < (4000));
    }

    private void f6(TypeA a) {
        TypeB b = (TypeB) a;
        TypeC c = ((TypeC) a);
        int r = 12345;
        r <<= (3);
        TypeD<String> d = ((TypeD<String>) a);
    }

    private void print(int arg)
    {
        System.out.println("arg = " + arg);
    }
    
    boolean f7(boolean f) {
		boolean a=true;
		boolean b = (a != f);
		b = (a == f);
		b = a == f;
		f = 2 == 3;
		f = (2 >= 3);
		f = b != true;
		f = (f != b);
		assert (1 == 1);
		assert ((1 == 1));
		if(f)
		{
			return b = ( b != f );
		}
		else
		{
			return f != false;
		}
    }

    boolean test (int y, boolean flag, TypeA x)	{
		boolean b = (x == null);
		if(flag != (y == 0))
		{
			return ("" == null && "null" == null);
		}
		else
		{
			return (flag != b);
		}
	}
    
    
    
    

    static class TypeA {}
    static class TypeB extends TypeA {}
    static class TypeC extends TypeA {}
    static class TypeD<T> extends TypeA {}
}
