#include <perms.h>

                                                                //      1  %externalintegerfn main
#line 1 "regression-bugs-tmp/cat.imp"
int MAIN( void )
#line 1 "regression-bugs-tmp/cat.imp"
{
  __label__ _imp_endofblock;
                                                                //      2  %string (255) a, s
_imp_current_line = 2; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 2 "regression-bugs-tmp/cat.imp"
_imp_string /*%string(255)*/ A;
#line 2 "regression-bugs-tmp/cat.imp"
_imp_string /*%string(255)*/ S;
                                                                //      3  %integer i, j, k, l;
_imp_current_line = 3; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 3 "regression-bugs-tmp/cat.imp"
int I;
#line 3 "regression-bugs-tmp/cat.imp"
int J;
#line 3 "regression-bugs-tmp/cat.imp"
int K;
#line 3 "regression-bugs-tmp/cat.imp"
int L;
                                                                //      4  %integername p, q
_imp_current_line = 4; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 4 "regression-bugs-tmp/cat.imp"
int /*name*/*P;
#line 4 "regression-bugs-tmp/cat.imp"
int /*name*/*Q;
                                                                //      5    i = 20; j = 25; k = 21; l = 27;
_imp_current_line = 5; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 5 "regression-bugs-tmp/cat.imp"
I = 20;
_imp_current_line = 5; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 5 "regression-bugs-tmp/cat.imp"
J = 25;
_imp_current_line = 5; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 5 "regression-bugs-tmp/cat.imp"
K = 21;
_imp_current_line = 5; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 5 "regression-bugs-tmp/cat.imp"
L = 27;
                                                                //      6    p == j; q == l;
_imp_current_line = 6; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 6 "regression-bugs-tmp/cat.imp"
P = &J;
_imp_current_line = 6; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 6 "regression-bugs-tmp/cat.imp"
Q = &L;
                                                                //      7    %cycle
_imp_current_line = 7; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 7 "regression-bugs-tmp/cat.imp"
L_0002:;
                                                                //      8      i = j; p = q
_imp_current_line = 8; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 8 "regression-bugs-tmp/cat.imp"
I = J;
_imp_current_line = 8; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 8 "regression-bugs-tmp/cat.imp"
*P = *Q;
                                                                //      9    %repeat %until k=3 %or (i=p %and l=1)
_imp_current_line = 9; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 9 "regression-bugs-tmp/cat.imp"
if (((K) == (3))) goto L_0003;
#line 9 "regression-bugs-tmp/cat.imp"
if (((I) != (*P))) goto L_0004;
#line 9 "regression-bugs-tmp/cat.imp"
if (((L) == (1))) goto L_0003;
#line 9 "regression-bugs-tmp/cat.imp"
L_0004:;
#line 9 "regression-bugs-tmp/cat.imp"
goto L_0002;
#line 9 "regression-bugs-tmp/cat.imp"
L_0003:;
                                                                //     10    %begin
_imp_current_line = 10; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 10 "regression-bugs-tmp/cat.imp"
void _BLOCK_1_LEVEL_1_(void) {
  __label__ _imp_endofblock;
                                                                //     11  !    %integerarray ia1(0 /* crashes if i */ :j)
                                                                //     12      %integerarray ia1(0:l)
_imp_current_line = 12; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 12 "regression-bugs-tmp/cat.imp"
int IA1[((L) + ((int)(1)))];
                                                                //     13  
                                                                //     14      select input(0)
_imp_current_line = 14; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 14 "regression-bugs-tmp/cat.imp"
_imp_SELECTINPUT(0);
                                                                //     15      select output(0)
_imp_current_line = 15; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 15 "regression-bugs-tmp/cat.imp"
_imp_SELECTOUTPUT(0);
                                                                //     16      s = "1+1+1+1+1+1+1+1+1"
_imp_current_line = 16; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 16 "regression-bugs-tmp/cat.imp"
S = _imp_str_literal("1+1+1+1+1+1+1+1+1");
                                                                //     17      %while s -> a.("+").s %cycle
_imp_current_line = 17; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 17 "regression-bugs-tmp/cat.imp"
L_0005:;
#line 17 "regression-bugs-tmp/cat.imp"
if (_imp_resolve(S, &A, _imp_str_literal("+"), &S)) goto L_0006;
                                                                //     18         readch(i)
_imp_current_line = 18; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 18 "regression-bugs-tmp/cat.imp"
_imp_READCH(&I);
                                                                //     19         %exit %if i < 0
_imp_current_line = 19; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 19 "regression-bugs-tmp/cat.imp"
if (((I) >= (0))) goto L_0008;
#line 19 "regression-bugs-tmp/cat.imp"
goto L_0006;
#line 19 "regression-bugs-tmp/cat.imp"
L_0008:;
                                                                //     20         print symbol(i)
_imp_current_line = 20; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 20 "regression-bugs-tmp/cat.imp"
_imp_PRINTSYMBOL(I);
                                                                //     21      %repeat
_imp_current_line = 21; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 21 "regression-bugs-tmp/cat.imp"
goto L_0005;
#line 21 "regression-bugs-tmp/cat.imp"
L_0006:;
                                                                //     22  
                                                                //     23      %cycle
_imp_current_line = 23; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 23 "regression-bugs-tmp/cat.imp"
L_0009:;
                                                                //     24         %exit %if i < 0
_imp_current_line = 24; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 24 "regression-bugs-tmp/cat.imp"
if (((I) >= (0))) goto L_000c;
#line 24 "regression-bugs-tmp/cat.imp"
goto L_000a;
#line 24 "regression-bugs-tmp/cat.imp"
L_000c:;
                                                                //     25         print symbol(i)
_imp_current_line = 25; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 25 "regression-bugs-tmp/cat.imp"
_imp_PRINTSYMBOL(I);
                                                                //     26      %repeat %until %not s -> a.("+").s
_imp_current_line = 26; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 26 "regression-bugs-tmp/cat.imp"
if (_imp_resolve(S, &A, _imp_str_literal("+"), &S)) goto L_000a;
#line 26 "regression-bugs-tmp/cat.imp"
goto L_0009;
#line 26 "regression-bugs-tmp/cat.imp"
L_000a:;
                                                                //     27  
                                                                //     28      %for i = 0,1,10 %cycle
_imp_current_line = 28; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 28 "regression-bugs-tmp/cat.imp"
I = (-1);
if ((((10)-(0)) % (1)) != 0) _imp_signal(5,1,0,"Illegal cycle I = 0, 1, 10");
L_000d:;
if (I == 10) goto L_000e;
I += 1;
                                                                //     29         %exit %if i < 0
_imp_current_line = 29; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 29 "regression-bugs-tmp/cat.imp"
if (((I) >= (0))) goto L_0010;
#line 29 "regression-bugs-tmp/cat.imp"
goto L_000e;
#line 29 "regression-bugs-tmp/cat.imp"
L_0010:;
                                                                //     30         print symbol(i)
_imp_current_line = 30; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 30 "regression-bugs-tmp/cat.imp"
_imp_PRINTSYMBOL(I);
                                                                //     31      %repeat
_imp_current_line = 31; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 31 "regression-bugs-tmp/cat.imp"
goto L_000d;
#line 31 "regression-bugs-tmp/cat.imp"
L_000e:;
                                                                //     32  
                                                                //     33      i = ia1(24)
_imp_current_line = 33; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 33 "regression-bugs-tmp/cat.imp"
I = IA1[24];
                                                                //     34    %end
_imp_current_line = 34; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 34 "regression-bugs-tmp/cat.imp"
goto _imp_endofblock;
_imp_endofblock: ;
} // End of block _BLOCK_1_LEVEL_1_ at level 2
_BLOCK_1_LEVEL_1_();
                                                                //     35    %stop
_imp_current_line = 35; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 35 "regression-bugs-tmp/cat.imp"
exit(0);
                                                                //     36  %end
_imp_current_line = 36; _imp_current_file = "regression-bugs-tmp/cat.imp";
#line 36 "regression-bugs-tmp/cat.imp"
_imp_endofblock: ;
} // End of block MAIN at level 1
                                                                //     37  
                                                                //     38  %endoffile
#line 38 "regression-bugs-tmp/cat.imp"
// End of file
