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
|
/*
* @LANG: java
*/
class java2
{
%%{
machine java1;
alphtype int;
main := 1 2 3 4 (
5 6 7 8 |
9 10 11 12
) 1073741824;
}%%
%% write data;
static void test( int data[] )
{
int cs, p = 0, pe = data.length;
int top;
%% write init;
%% write exec;
if ( cs >= java1_first_final )
System.out.println( "ACCEPT" );
else
System.out.println( "FAIL" );
}
static final int t1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 1073741824 };
static final int t2[] = { 1, 2, 3, 4, 9, 10, 11, 12, 1073741824 };
static final int t3[] = { 1, 2, 3, 4, 1073741824 };
public static void main( String args[] )
{
test( t1 );
test( t2 );
test( t3 );
}
}
/* _____OUTPUT_____
ACCEPT
ACCEPT
FAIL
*/
|