D5.java
3.73 KB
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
/**
*
*/
package is2.parser;
import is2.data.DX;
import is2.data.IFV;
import is2.data.Long2IntInterface;
/**
* @author Dr. Bernd Bohnet, 30.10.2010
*
*
*/
final public class D5 extends DX {
public long shift;
private long h;
/* (non-Javadoc)
* @see is2.parser52L.DX#cz2()
*/
final public void cz2() {
if (v0<0||v1<0) {
shift=0;
h=-1;
return ;
}
h = v0 | v1<<(shift=a0);
shift +=a1;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#cz3()
*/
final public void cz3() {
if (v0<0||v1<0||v2<0) {
shift=0;
h=-1;
return ;
}
h = v0 | v1<<(shift=a0) | v2<<(shift +=a1);
shift= shift + a2;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#cz4()
*/
final public void cz4() {
if (v0<0||v1<0||v2<0||v3<0) {
shift=0;
h=-1;
return ;
}
h = v0 | v1<<(shift=a0) | v2<<(shift +=a1) | v3<<(shift +=a2);
shift= shift +a3;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#cz5()
*/
final public void cz5() {
if (v0<0||v1<0||v2<0||v3<0||v4<0) {
shift=0;
h=-1;
return ;
}
h = v0 | v1<<(shift=a0) | v2<<(shift +=a1) | v3<<(shift +=a2) | v4<<(shift +=a3);
shift =shift+a4;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#cz6()
*/
final public void cz6() {
if (v0<0||v1<0||v2<0||v3<0||v4<0||v5<0) {
shift=0;
h=-1;
return ;
}
h = v0 | v1<<(shift=a0) | v2<<(shift +=a1) | v3<<(shift +=a2) | v4<<(shift +=a3) | v5<<(shift +=a4);
shift =shift+a5;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#cz7()
*/
final public void cz7() {
if (v0<0||v1<0||v2<0||v3<0||v4<0||v5<0||v6<0) {
shift=0;
h=-1;
return ;
}
h = v0 | v1<<(shift=a0) | v2<<(shift +=a1) | v3<<(shift +=a2) | v4<<(shift +=a3) | v5<<(shift +=a4) | v6<<(shift +=a5);
shift =shift+a6;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#cz8()
*/
final public void cz8() {
if (v0<0||v1<0||v2<0||v3<0||v4<0||v5<0||v6<0||v7<0) {
h=-1;
shift=0;
return ;
}
h = v0 | v1<<(shift=a0) | v2<<(shift +=a1) | v3<<(shift +=a2) | v4<<(shift +=a3) | v5<<(shift +=a4) | v6<<(shift +=a5) | v7<<(shift +=a6);
shift =shift+a7;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#clean()
*/
final public void clean() {
v0=0;v1=0;v2=0;v3=0;v4=0;v5=0;v6=0;v7=0;v8=0;
shift=0;h =0;
}
public final Long2IntInterface _li;
public D5(Long2IntInterface li) {
_li=li;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#cs(int, int)
*/
final public long cs(int b, int v) {
if (h<0) {
h=-1; shift=0;
return -1;
}
h |= (long)v<<shift;
shift +=b;
if (shift>64) {
System.out.println("shift too large "+shift);
new Exception().printStackTrace();
}
return h;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#csa(int, int)
*/
final public long csa(int b, int v) {
if (h<0) {
h=-1; shift=0; return -1;
}
h |= (long)v<<shift;
shift +=b;
if (shift>64) {
System.out.println("shift too large "+shift);
new Exception().printStackTrace();
}
return h;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#csa(int, int, is2.data.IFV)
*/
final public void csa(int b, int v, IFV f ) {
if (h<0) {
h=-1; shift=0; return;
}
h |= (long)v<<shift;
shift +=b;
if (shift>64) {
System.out.println("shift too large "+shift);
new Exception().printStackTrace();
}
f.add((int)_li.l2i(h));
}
/* (non-Javadoc)
* @see is2.parser52L.DX#getVal()
*/
public long getVal() {
if (h<0) {
h=-1; shift=0; return h;
}
return h;
}
/* (non-Javadoc)
* @see is2.parser52L.DX#map(is2.data.IFV, long)
*/
public void map(IFV f, long l) {
if (l>0) f.add(_li.l2i(l));
}
/* (non-Javadoc)
* @see is2.data.DX#computeLabeValue(short, short)
*/
@Override
public int computeLabeValue(int label, int shift) {
return label<<shift;
}
public void fix() {
}
}