1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
package test {
  class Literal {
    function test() {
      call(1, 1, 200, 200);
    }
  }

  class Arithmetics {
    function b() {
      var a:int = 0;
      var b:int;
      b = (a += 1);
      return (b -= (a += 1));
    }

    function a() {
      var a:int = 0;
      var b:int = ++a;
      var c:int = a++;
      return a;
    }
  }

  class Logic {
    function P_a_or_b_p_and_P_c_and_d_p_or_e(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      var v:Boolean = (a || b) && (c && d) || e;
      away();
      return v;
    }

    function a_or_b(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      if(a || b) {
        yes();
      } else {
        no();
      }
    }

    function a_and_b_and_c(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      return a && (b && c);
    }

    function P_a_and_b_p_and_c(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      return (a && b) && c;
    }

    function a_and_b(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      return a && b;
    }
  }

  class Ternary {
    function hardcore(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      if(((a && b) ? (c || d) && e : b) && (a || b)) {
        return pow();
      } else {
        weeee();
      }
      duh();
    }
    function q(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      return ((a ? b : c) ? (b ? c : d) : (c ? d : e));
    }
    function a_I_b_E_c_I_d_E_e(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      return a ? b : (c ? d : e);
    }
    function a_I_b_I_c_E_d_E_e(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      return a ? (b ? c : d) : e;
    }
    function a_I_b_E_c(a: Boolean, b:Boolean, c:Boolean, d:Boolean, e:Boolean) : Boolean {
      return (1 > 2) ? b : c;
    }
  }

  class Conditionals {
    function b(a:Boolean) {
      if(a)
        return foo();
      else
        return 1;
    }

    function a(a:Boolean) {
      baz();
      if(a) {
        foge();
      } else {
        huga();
      }
      piyo();
    }
  }

  class Loops {
    function e(f:Boolean) {
      do { f = tttest();
      } while(f);
    }

    function d() {
      while(true) {
        pow();
        if(frak()) { a(); break; b(); }
        weee();
      }
    }

    function b() {
      weee();
      for(var q:int = 1; q > 0; q++) {
        frak();
      }
    }
  }

  class Switch {
    function b(q:int):Boolean {
      for(;;) {
      switch(prop) {
      case 0x10:
      case 0x20:
        fuga();
      break;

      case 0x30:
        piyo();
      break;

      default:
        baz();
      break;
      }
      }
      return false;
    }

    function a(q:int):Boolean {
      switch(q) {
      case 0x10:
        hoge();
      case 0x20:
        fuga();
      break;
      case 0x30:
        piyo();
      break;
      default:
        baz();
      break;
      }
      return false;
    }
  }

  class Exceptions {
    function c() {
      try {
        hoge();
      } finally {
        piyo();
      }
    }
    function b() {
      try {
        hoge();
        throw 1;
        fuga();
      } catch(e: SecurityError) {
        piyo(e);
      }
    }
    function a() {
      try {
        hoge();
        throw 1;
        fuga();
      } catch(e: SecurityError) {
        piyo(e);
      } catch(e: Error) {
        throw e;
      }
    }
  }
}