PageRenderTime 11ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/test/kilim/test/ex/ExExpr.java

http://github.com/kilim/kilim
Java | 109 lines | 96 code | 13 blank | 0 comment | 40 complexity | f932f5b632f9b2114528566a49a40bd4 MD5 | raw file
  1package kilim.test.ex;
  2
  3public class ExExpr {}
  4
  5
  6class ExInts {
  7    int[] intstuff() {
  8        int i = 10;
  9        int[] arr = new int[10];
 10        arr[1] = arr[2] ^ i * 34 - ((arr[3] << 2) / 4);
 11        int j = arr[1];
 12        int k = i;
 13        if (i > j  && intr(i) >= k || 
 14                i < j && i != arr[2] && i == arr[3]) {
 15            return null;
 16        }
 17        return arr;
 18    }
 19    int intr(int i) {
 20        if (((i + 5)  % 6 > 99) || (-i < 3)) {
 21            return -1;
 22        } else {
 23            char c = '\u33d3';
 24            return (int)c;
 25        }
 26    }
 27    int bits(int i, int j) {
 28        return (~i | j) & (i >>> 2) & (j >> 3);
 29    }
 30}
 31
 32
 33class ExLongs {
 34    long[] longstuff() {
 35        long i = 10;
 36        long[] arr = new long[10];
 37        arr[1] = arr[2] ^ i * 34 - ((arr[3] << 2) / 4);
 38        long j = arr[1];
 39        long k = i;
 40        if (i > -j  && longr(i) >= k || 
 41                i < j && i != arr[2] - 3L && i == arr[3]) {
 42            return null;
 43        }
 44        return arr;
 45    }
 46    long longr(long i) {
 47        if (((i + 5)  % 6 > 99) || (i < 3)) {
 48            return -1;
 49        } else {
 50            char c = '\u33d3';
 51            return (long)c;
 52        }
 53    }
 54    long bits(long i, long j) {
 55        return (~i | j) & (i >>> 2) & (j >> 3);
 56    }
 57}
 58
 59
 60
 61class ExDoubles {
 62    double[] doublestuff() {
 63        double i = 0;
 64        
 65        double[] arr = new double[10];
 66        arr[1] = (arr[2] * 34)/3;
 67        double j = arr[1];
 68        double k = 1;
 69        if (i > j  && doubler(i) >= k % 5 || 
 70                i < j && i != arr[2] && i == arr[3]) {
 71            return null;
 72        }
 73        return arr;
 74    }
 75    double doubler(double i) {
 76        if (((i + 5)  % 6 > 99) || (i - 2.0 < 3)) {
 77            return -1;
 78        } else {
 79            char c = '\u33d3';
 80            return (double)c;
 81        }
 82    }
 83}
 84
 85class ExFloats {
 86    float[] floatstuff() {
 87        float i = 0;
 88        
 89        float[] arr = new float[10];
 90        arr[1] = (arr[2] * 34)/3;
 91        float j = arr[1];
 92        float k = 1;
 93        if (i > j  && floatr(i) >= k % 5 || 
 94                i < j && i - 3  != arr[2] && i == arr[3]) {
 95            return null;
 96        }
 97        return arr;
 98    }
 99    float floatr(float i) {
100        if (((i + 5)  % 6 > 99) || (i - 1.0f < 3)) {
101            return -1;
102        } else {
103            char c = '\u33d3';
104            return (float)c;
105        }
106    }
107}
108
109