#include <perms.h>

//          Edinburgh IMP77 Compiler - Version 8.4
//
//     1  %externalroutine debug(%string(255)s)

void DEBUG(_imp_string255 S) {
  _imp_enter(DEBUG);

  //     2  %end

  _imp_return;
  _imp_begin_backtrace(DEBUG);
  _imp_diagf("\n\nArguments:\n\n");
  _imp_diagf("S = \"%.*s\"\n", S.cstr.len, S.cstr.s);
  _imp_diagf("\nLocal Variables:\n\n");
  _imp_end_backtrace();
} /* end of DEBUG */

// ?S unused
//     3  %externalroutine put(%integer n)

void PUT(int N) {
  _imp_enter(PUT);

  //     4  %end

  _imp_return;
  _imp_begin_backtrace(PUT);
  _imp_diagf("\n\nArguments:\n\n");
  _imp_diagf("N = %d\n", N);
  _imp_diagf("\nLocal Variables:\n\n");
  _imp_end_backtrace();
} /* end of PUT */

// ?N unused
//     5  %externalroutine putword(%integer n)

void PUTWORD(int N) {
  _imp_enter(PUTWORD);

  //     6  %end

  _imp_return;
  _imp_begin_backtrace(PUTWORD);
  _imp_diagf("\n\nArguments:\n\n");
  _imp_diagf("N = %d\n", N);
  _imp_diagf("\nLocal Variables:\n\n");
  _imp_end_backtrace();
} /* end of PUTWORD */

// ?N unused
//     7  %externalroutine putlong(%integer n)

void PUTLONG(int N) {
  _imp_enter(PUTLONG);

  //     8  %end

  _imp_return;
  _imp_begin_backtrace(PUTLONG);
  _imp_diagf("\n\nArguments:\n\n");
  _imp_diagf("N = %d\n", N);
  _imp_diagf("\nLocal Variables:\n\n");
  _imp_end_backtrace();
} /* end of PUTLONG */

// ?N unused
//     9  %externalroutine putblock(%integer len, %bytename b)

void PUTBLOCK(int LEN, unsigned char *B) {
  _imp_enter(PUTBLOCK);

  //    10  %end

  _imp_return;
  _imp_begin_backtrace(PUTBLOCK);
  _imp_diagf("\n\nArguments:\n\n");
  _imp_diagf("LEN = %d\n", LEN);
  _imp_diagf("B = %d\n", *B);
  _imp_diagf("\nLocal Variables:\n\n");
  _imp_end_backtrace();
} /* end of PUTBLOCK */

// ?B unused
// ?LEN unused
//    11  %externalroutine select output tank(%integer n)

void SELECTOUTPUTTANK(int N) {
  _imp_enter(SELECTOUTPUTTANK);

  //    12  %end

  _imp_return;
  _imp_begin_backtrace(SELECTOUTPUTTANK);
  _imp_diagf("\n\nArguments:\n\n");
  _imp_diagf("N = %d\n", N);
  _imp_diagf("\nLocal Variables:\n\n");
  _imp_end_backtrace();
} /* end of SELECTOUTPUTTANK */

// ?N unused
//    13  !%externalstring(127)%fnspec infilename
//    14  %externalroutine readrecord(%integername len, %bytename b)

void READRECORD(int *LEN, unsigned char *B) {
  _imp_enter(READRECORD);

  //    15  %end

  _imp_return;
  _imp_begin_backtrace(READRECORD);
  _imp_diagf("\n\nArguments:\n\n");
  _imp_diagf("LEN = %d\n", *LEN);
  _imp_diagf("B = %d\n", *B);
  _imp_diagf("\nLocal Variables:\n\n");
  _imp_end_backtrace();
} /* end of READRECORD */

// ?B unused
// ?LEN unused
//    16  !%external %string (15) %fn %spec date
//    17  !%external %string (15) %fn %spec time
//    18
//    19  !   Computer Science IMP77 Compiler   -   Version 8  First pass
//    20  !                         23rd March 1981
//    21  !
//    22  %control 0

// _imp_control(0x0000); /* %control is a compiler directive and does not generate code. */

//    23
//    24  %externalintegerfn pass1(%integer object tank)

int PASS1(int OBJECTTANK) {
  _imp_enter(PASS1);

  //    25     %systemroutinespec exit %alias "exit" (%integer status)

  extern void EXIT(int STATUS) __asm__("exit");

  //    26     %externalstring(63)%spec error message

  extern _imp_string63 ERRORMESSAGE;

  //    27     %externalstring(72)%fnspec sysmess(%integer n)

  extern _imp_string72 SYSMESS(int N);

  //    28
  //    29     %externalstring(6) version = "V08.02"

  _imp_string6 VERSION = _imp_str_init("V08.02");

  //    30
  //    31     %externalintegerspec command

  extern int COMMAND;

  //    32
  //    33     %constinteger warnbit = 8_200
  //    34     %constinteger listbit = 8_400
  //    35
  //    36     !configuration parameters
  //    37
  //    38     %CONSTINTEGER max int      = ((-1)>>1)//10
  //    39     %CONSTINTEGER max dig      = (-1)>>1-maxint*10
  //    40     %CONSTINTEGER byte size    = 8;            !bits per byte
  //    41     %CONSTINTEGER max tag      = 1200;          !max no. of tags
  //    42     %CONSTINTEGER max dict     = 9000;         !max extent of dictionary
  //    43     %CONSTINTEGER name bits    = 11
  //    44     %CONSTINTEGER max names    = 1<<namebits-1
  //    45     %OWNINTEGER   spare names  = max names

  static int SPARENAMES = 2047;

  //    46     %CONSTINTEGER max grammar  = 1800
  //    47     %CONSTINTEGER lit max      = 50;           !max no. of constants/stat.
  //    48     %CONSTINTEGER rec size     = 260;          !size of analysis record
  //    49     %CONSTINTEGER dim limit    = 6;            !maximum array dimension
  //    50
  //    51     !symbols
  //    52
  //    53     %CONSTINTEGER ff     = 12;              !form feed
  //    54     %CONSTINTEGER marker = '^';             !marker for faults
  //    55     %CONSTINTEGER squote = '"';             !string quote
  //    56     %CONSTINTEGER cquote = '''';            !character quote
  //    57
  //    58     !streams
  //    59
  //    60     %CONSTINTEGER   source = 1, prims = 2
  //    61     %CONSTINTEGER report = 0, listing = 2
  //    62
  //    63
  //    64     !types
  //    65
  //    66     %CONSTINTEGER integer = 1
  //    67     %CONSTINTEGER real    = 2
  //    68     %CONSTINTEGER stringv = 3
  //    69     %CONSTINTEGER record  = 4
  //    70
  //    71     !forms
  //    72
  //    73     %CONSTINTEGER iform = integer<<4+1
  //    74
  //    75     %CONSTINTEGER var = 91
  //    76     %CONSTINTEGER const   = 93
  //    77     %CONSTINTEGER swit    = 105
  //    78     %CONSTINTEGER comment = 22
  //    79     %CONSTINTEGER termin  = 20
  //    80     %CONSTINTEGER lab     = 3
  //    81     %CONSTINTEGER jump    = 54
  //    82
  //    83     %CONSTINTEGER recfm = 4
  //    84     %CONSTINTEGER proc  = 7;                     !class for proc
  //    85
  //    86     !phrase entries
  //    87
  //    88     %CONSTINTEGER escdec   = 252
  //    89     %CONSTINTEGER escproc  = 253
  //    90     %CONSTINTEGER escarray = 254
  //    91     %CONSTINTEGER escrec   = 255
  //    92
  //    93     %RECORDFORMAT arfm({GT:%SHORT}%INTEGER class,sub,link,ptype,papp,pformat,x,pos);!imp77:

  struct ARFM {
    union {
      struct {
        int CLASS;
        int SUB;
        int LINK;
        int PTYPE;
        int PAPP;
        int PFORMAT;
        int X;
        int POS;
      };
    };
  };

  //    94
  //    95     %RECORDFORMAT tagfm(%INTEGER app, format, %C

  struct TAGFM {
    union {
      struct {
        int APP;
        int FORMAT;
        int FLAGS;
        int INDEX;
        int TEXT;
        int LINK;
      };
    };
  };

  //    96+                        {GT:%SHORT}%INTEGER flags, index, text, link)
  //    97
  //    98     !flags
  //    99
  //   100  !      *===.===.===.===.===.====.====.====.===.======.======*
  //   101  !      ! u ! c ! c ! p ! s ! a  ! o  ! pr ! s ! type ! form !
  //   102  !      ! 1 ! 1 ! 1 ! 1 ! 1 ! 1  ! 1  ! 1  ! 1 !  3   !  4   !
  //   103  !      *===^===^===^===^===^====^====^====^===^======^======*
  //   104  !        u   c   c   p   s   a    o    p    s    t      f
  //   105  !        s   l   o   a   u   n    w    r    p    y      o
  //   106  !        e   o   n   r   b   a    n    o    e    p      r
  //   107  !        d   s   s   a   n   m         t    c    e      m
  //   108  !            e   t   m   a   e
  //   109  !            d       s   m
  //   110  !                        e
  //   111  !
  //   112  !
  //   113
  //   114     %CONSTINTEGER used bit   = 2_1000000000000000,
  //   115+                  closed     = 2_0100000000000000,
  //   116+                  const bit  = 2_0010000000000000,
  //   117+                  parameters = 2_0001000000000000,
  //   118+                  subname    = 2_0000100000000000,
  //   119+                  aname      = 2_0000010000000000,
  //   120+                  own bit    = 2_0000001000000000,
  //   121+                  prot       = 2_0000000100000000,
  //   122+                  spec       = 2_0000000010000000
  //   123
  //   124     %CONSTINTEGER trans bit  = 16_4000
  //   125     %CONSTINTEGER error      = 16_8000
  //   126
  //   127     %CONSTINTEGER manifest = 120, figurative = 130
  //   128     %CONSTINTEGER actions  = 180, phrasal    = 200
  //   129
  //   130     %CONSTBYTEINTEGERARRAY amap(0:15) = %C

  const unsigned char AMAP[16] = {89, 91, 92, 104, 94, 93, 105, 100, 101, 102, 103, 106, 107, 108, 109, 89};
  _imp_create_constdv(const, unsigned char, AMAP, 0, 15);

  //   131+  89, 91, 92, 104, 94, const, swit, 100, 101, 102, 103, 106, 107, 108, 109, 89
  //   132  !?   v   n   l    fm  const  swit  rp   fp   mp   pp   a    an   na   nan  ?
  //   133
  //   134     %CONSTBYTEINTEGERARRAY atoms(0:15) = 89, 1, 1, 10,  9,  1, 10,  7,

  const unsigned char ATOMS[16] = {89, 1, 1, 10, 9, 1, 10, 7, 7, 7, 7, 4, 1, 4, 1, 89};
  _imp_create_constdv(const, unsigned char, ATOMS, 0, 15);

  //   135+                                          7, 7, 7,  4,  1,  4,  1, 89
  //   136
  //   137     %RECORD(arfm)%ARRAY ar(1:rec size)

  struct ARFM AR[260];
  _imp_create_constdv(, struct ARFM, AR, 1, 260);

  //   138
  //   139     %OWNINTEGER class = 0;                    !class of atom wanted

  static int CLASS = 0;

  //   140     %OWNINTEGER x = 0;                        !usually last tag

  static int X = 0;

  //   141     %OWNINTEGER atom1 = 0;                    !atom class (major)

  static int ATOM1 = 0;

  //   142     %OWNINTEGER atom2 = 0;                    !atom class (minor)

  static int ATOM2 = 0;

  //   143     %OWNINTEGER subatom = 0;                  !extra info about atom

  static int SUBATOM = 0;

  //   144     %OWNINTEGER type = 0, app = 0, format = 0;!atom info

  static int TYPE = 0;
  static int APP = 0;
  static int FORMAT = 0;

  //   145     %INTEGER hash value

  int HASHVALUE = 0xFEFEFEFE;

  //   146     %OWNINTEGER faulty  = 0;                  !fault indicator

  static int FAULTY = 0;

  //   147     %OWNINTEGER fault rate = 0;               !fault rate count

  static int FAULTRATE = 0;

  //   148     %OWNINTEGER lines = 0;                    !current line number

  static int LINES = 0;

  //   149     %OWNINTEGER text line = 0;                !starting line for string const

  static int TEXTLINE = 0;

  //   150     %OWNINTEGER margin = 0;                   !statement start margin

  static int MARGIN = 0;

  //   151     %OWNINTEGER error margin = 0, error sym = 0, column = 0

  static int ERRORMARGIN = 0;
  static int ERRORSYM = 0;
  static int COLUMN = 0;

  //   152     %OWNINTEGER stats = 0;                    !statements compiled

  static int STATS = 0;

  //   153     %OWNINTEGER mon pos = 0;                  !flag for diagnose

  static int MONPOS = 0;

  //   154     %OWNINTEGER sym = nl;                     !current input symbol

  static int SYM = 10;

  //   155     %OWNINTEGER symtype = 0;                  !type of current symbol

  static int SYMTYPE = 0;

  //   156     %OWNINTEGER quote = 0;                    !>0 strings, <0 chars

  static int QUOTE = 0;

  //   157     %owninteger end mark = 0;                  !%end flag

  static int ENDMARK = 0;

  //   158     %OWNINTEGER cont = ' ', csym = ' ';       !listing continuation marker

  static int CONT = 32;
  static int CSYM = 32;

  //   159     %OWNINTEGER decl = 0;                     !current declarator flags

  static int DECL = 0;

  //   160     %OWNINTEGER dim  = 0;                     !arrayname dimension

  static int DIM = 0;

  //   161     %OWNINTEGER spec given = 0

  static int SPECGIVEN = 0;

  //   162
  //   163     %OWNINTEGER escape class = 0;             !when and where to escape

  static int ESCAPECLASS = 0;

  //   164     %OWNINTEGER protection=0, atom flags=0

  static int PROTECTION = 0;
  static int ATOMFLAGS = 0;

  //   165     %OWNINTEGER otype = 0;                    !current 'own' type

  static int OTYPE = 0;

  //   166     %OWNINTEGER reals ln = 1;                 ! =4 for %REALSLONG

  static int REALSLN = 1;

  //   167     %OWNINTEGER last1 = 0;                    !previous atom class

  static int LAST1 = 0;

  //   168     %OWNINTEGER gen type = 0

  static int GENTYPE = 0;

  //   169     %OWNINTEGER ptype = 0;                    !current phrase type

  static int PTYPE = 0;

  //   170     %OWNINTEGER papp = 0;                     !current phrase parameters

  static int PAPP = 0;

  //   171     %OWNINTEGER pformat = 0;                  !current phrase format

  static int PFORMAT = 0;

  //   172     %OWNINTEGER force = 0;                    !force next ptype

  static int FORCE = 0;

  //   173     %OWNINTEGER g = 0, gg = 0, map gg = 0;            !grammar entries

  static int G = 0;
  static int GG = 0;
  static int MAPGG = 0;

  //   174     %OWNINTEGER fdef  = 0;                    !current format definition

  static int FDEF = 0;

  //   175     %OWNINTEGER this  = -1;                   !current recordformat tag

  static int THIS = -1;

  //   176     %OWNINTEGER nmin = 0;                     !analysis record atom pointer

  static int NMIN = 0;

  //   177     %OWNINTEGER nmax = 0;                     !analysis record phrase pointer

  static int NMAX = 0;

  //   178     %OWNINTEGER rbase = 0;                    !record format definition base

  static int RBASE = 0;

  //   179     %OWNINTEGER stbase = 0;                   !constant work area base

  static int STBASE = 0;

  //   180     %OWNINTEGER gmin = max grammar;           !upper bound on grammar

  static int GMIN = 1800;

  //   181     %OWNINTEGER dmax = 1

  static int DMAX = 1;

  //   182     %OWNINTEGER tmin = max tag;               !upper bound on tags

  static int TMIN = 1200;

  //   183     %OWNINTEGER ss      = 0;                  !source statement entry

  static int SS = 0;

  //   184        %STRING(63) include file

  _imp_string63 INCLUDEFILE;

  //   185     %OWNINTEGER include list = 0

  static int INCLUDELIST = 0;

  //   186     %OWNINTEGER include = 0;                  !=0 unused, #0 being used

  static int INCLUDE = 0;

  //   187     %OWNINTEGER perm    = 1;                  !1 = compiling perm, 0 = program

  static int PERM = 1;

  //   188     %OWNINTEGER progmode= 0;                  !-1 = file, 1 = begin/eop

  static int PROGMODE = 0;

  //   189     %OWNINTEGER sstype = 0;                   !-1:exec stat

  static int SSTYPE = 0;

  //   190                                               ! 0: declaration
  //   191                                               ! 1: block in
  //   192                                               ! 2: block out
  //   193     %OWNINTEGER spec mode = 0;                !>=0: definition

  static int SPECMODE = 0;

  //   194                                               ! -1: proc spec
  //   195                                               ! -2: recordformat
  //   196     %OWNINTEGER ocount  = -1;                 !own constants wanted

  static int OCOUNT = -1;

  //   197     %OWNINTEGER limit   = 0;                  !lookup limit

  static int LIMIT = 0;

  //   198     %OWNINTEGER copy    = 0;                  !duplicate name flag

  static int COPY = 0;

  //   199     %OWNINTEGER order   = 0;                  !out of sequence flag

  static int ORDER = 0;

  //   200     %OWNINTEGER for warn = 0;                 !non-local flag

  static int FORWARN = 0;

  //   201     %OWNINTEGER dubious = 0;                  !flag for dubious statements

  static int DUBIOUS = 0;

  //   202     %OWNINTEGER dp      = 1

  static int DP = 1;

  //   203     %OWNINTEGER pos1    = 0, pos2 = 0;        !error position

  static int POS1 = 0;
  static int POS2 = 0;

  //   204     %OWNINTEGER pos     = 0;                  !input line index

  static int POS = 0;

  //   205     %OWNINTEGER dimension = 0;                !current array dimension

  static int DIMENSION = 0;

  //   206     %OWNINTEGER local = 0;                    !search limit for locals

  static int LOCAL = 0;

  //   207     %OWNINTEGER fm base = 0;                  !entry for format decls

  static int FMBASE = 0;

  //   208     %OWNINTEGER search base = 0;              !entry for record_names

  static int SEARCHBASE = 0;

  //   209     %OWNINTEGER format list = 0;              !size of current format list

  static int FORMATLIST = 0;

  //   210     %INTEGER recid

  int RECID = 0xFEFEFEFE;

  //   211     %ownbyteintegername current char

  static unsigned char *CURRENTCHAR;

  //   212     %OWNBYTEINTEGERARRAY char(0:133)=nl(134);  !input line

  static unsigned char CHAR[134] = {[0 ... 133] = 10};
  _imp_create_constdv(static, unsigned char, CHAR, 0, 133);

  //   213     %INTEGERARRAY lit pool(0:lit max)

  int LITPOOL[51];
  _imp_create_constdv(, int, LITPOOL, 0, 50);

  //   214     %OWNINTEGER lit = 0;                      !current literal (integer)

  static int LIT = 0;

  //   215     %OWNINTEGER lp = 0;                       !literals pointer

  static int LP = 0;

  //   216     %OWNINTEGER block x = 0;                  !block tag

  static int BLOCKX = 0;

  //   217     %OWNINTEGER list    = 2;                  !<= to enable

  static int LIST = 2;

  //   218     %OWNINTEGER control = 0

  static int CONTROL = 0;

  //   219     %OWNINTEGER diag = 0;                     !diagnose flags

  static int DIAG = 0;

  //   220     %SHORTINTEGERARRAY hash(0:max names)

  short int HASH[2048];
  _imp_create_constdv(, short int, HASH, 0, 2047);

  //   221     %RECORD(tagfm)%ARRAY tag(0:max tag)

  struct TAGFM TAG[1201];
  _imp_create_constdv(, struct TAGFM, TAG, 0, 1200);

  //   222     {GT:%SHORT}%INTEGERARRAY dict(1:max dict)

  int DICT[9000];
  _imp_create_constdv(, int, DICT, 1, 9000);

  //   223
  //   224  !*** start of generated tables ***
  //   225  !!   %include "tables.imp"
  //   226  !!   %endoflist
  //   227  %conststring(8)%array text(0:255) = %c

  const _imp_string8 TEXT[256] = {
      _imp_str_init("Z"),        _imp_str_init("VDEC"),    _imp_str_init("OWNVDEC"),  _imp_str_init("EXTVSPEC"),
      _imp_str_init("ADEC"),     _imp_str_init("OWNADEC"), _imp_str_init("EXTASPEC"), _imp_str_init("PROC"),
      _imp_str_init("PROCSPEC"), _imp_str_init("FORMDEC"), _imp_str_init("SWDEC"),    _imp_str_init("LDEC"),
      _imp_str_init("FORMSPEC"), _imp_str_init(""),        _imp_str_init(""),         _imp_str_init(""),
      _imp_str_init(""),         _imp_str_init(""),        _imp_str_init("OPTION"),   _imp_str_init("COMMA"),
      _imp_str_init("T"),        _imp_str_init("COLON"),   _imp_str_init("COMMENT"),  _imp_str_init("LB"),
      _imp_str_init("ALIAS"),    _imp_str_init("RB"),      _imp_str_init("SUB"),      _imp_str_init("ARRAYD"),
      _imp_str_init("STYPE"),    _imp_str_init("ARRAY"),   _imp_str_init("NAME"),     _imp_str_init("PROCD"),
      _imp_str_init("FNMAP"),    _imp_str_init("SWITCH"),  _imp_str_init("OWN"),      _imp_str_init("EXTERNAL"),
      _imp_str_init("STRING"),   _imp_str_init("RECORD"),  _imp_str_init("FORMAT"),   _imp_str_init("SPEC"),
      _imp_str_init("MCODE"),    _imp_str_init("LABEL"),   _imp_str_init("OP1"),      _imp_str_init("OP2"),
      _imp_str_init("OP3"),      _imp_str_init("SIGN"),    _imp_str_init("UOP"),      _imp_str_init("MOD"),
      _imp_str_init("DOT"),      _imp_str_init("COMP"),    _imp_str_init("ACOMP"),    _imp_str_init("EQ"),
      _imp_str_init("EQEQ"),     _imp_str_init("JAM"),     _imp_str_init("JUMP"),     _imp_str_init("RESOP"),
      _imp_str_init("AND"),      _imp_str_init("OR"),      _imp_str_init("NOT"),      _imp_str_init("WHILE"),
      _imp_str_init("UNTIL"),    _imp_str_init("FOR"),     _imp_str_init("CWORD"),    _imp_str_init("EXIT"),
      _imp_str_init("ON"),       _imp_str_init("SIGNAL"),  _imp_str_init("THEN"),     _imp_str_init("START"),
      _imp_str_init("ELSE"),     _imp_str_init("FINISH"),  _imp_str_init("FELSE"),    _imp_str_init("CYCLE"),
      _imp_str_init("REPEAT"),   _imp_str_init("PROGRAM"), _imp_str_init("BEGIN"),    _imp_str_init("END"),
      _imp_str_init("ENDPROG"),  _imp_str_init("ENDPERM"), _imp_str_init("FRESULT"),  _imp_str_init("MRESULT"),
      _imp_str_init("BACK"),     _imp_str_init("MONITOR"), _imp_str_init("STOP"),     _imp_str_init("LIST"),
      _imp_str_init(""),         _imp_str_init("CONTROL"), _imp_str_init("INCLUDE"),  _imp_str_init("MASS"),
      _imp_str_init("RTYPE"),    _imp_str_init("ADDOP"),   _imp_str_init("IDENT"),    _imp_str_init("V"),
      _imp_str_init("N"),        _imp_str_init("CONST"),   _imp_str_init("FM"),       _imp_str_init(""),
      _imp_str_init("R"),        _imp_str_init("F"),       _imp_str_init("M"),        _imp_str_init("P"),
      _imp_str_init("RP"),       _imp_str_init("FP"),      _imp_str_init("MP"),       _imp_str_init("PP"),
      _imp_str_init("L"),        _imp_str_init("S"),       _imp_str_init("A"),        _imp_str_init("AN"),
      _imp_str_init("NA"),       _imp_str_init("NAN"),     _imp_str_init(""),         _imp_str_init(""),
      _imp_str_init(""),         _imp_str_init(""),        _imp_str_init(""),         _imp_str_init(""),
      _imp_str_init(""),         _imp_str_init(""),        _imp_str_init(""),         _imp_str_init(""),
      _imp_str_init("%MSTART"),  _imp_str_init("%CLEAR"),  _imp_str_init("%PRED"),    _imp_str_init(""),
      _imp_str_init("%DUBIOUS"), _imp_str_init("%DUP"),    _imp_str_init("%PIN"),     _imp_str_init("%POUT"),
      _imp_str_init("%EDUP"),    _imp_str_init(""),        _imp_str_init("PIDENT"),   _imp_str_init("CIDENT"),
      _imp_str_init("OIDENT"),   _imp_str_init("FNAME"),   _imp_str_init("SWID"),     _imp_str_init("DOTL"),
      _imp_str_init("DOTR"),     _imp_str_init("ASEP"),    _imp_str_init("CSEP"),     _imp_str_init("OSEP"),
      _imp_str_init("PSEP"),     _imp_str_init("ARB"),     _imp_str_init("BPLRB"),    _imp_str_init("ORB"),
      _imp_str_init("PRB"),      _imp_str_init("CRB"),     _imp_str_init("RCRB"),     _imp_str_init("RECRB"),
      _imp_str_init("RECLB"),    _imp_str_init("LAB"),     _imp_str_init("MLAB"),     _imp_str_init("SLAB"),
      _imp_str_init("XNAME"),    _imp_str_init("OWNT"),    _imp_str_init("DBSEP"),    _imp_str_init("PCONST"),
      _imp_str_init("CMOD"),     _imp_str_init("CSIGN"),   _imp_str_init("CUOP"),     _imp_str_init("COP1"),
      _imp_str_init("COP2"),     _imp_str_init("COP3"),    _imp_str_init("INDEF"),    _imp_str_init("XELSE"),
      _imp_str_init("CRESOP"),   _imp_str_init("NLAB"),    _imp_str_init("RUNTIL"),   _imp_str_init("ACONST"),
      _imp_str_init("ORRB"),     _imp_str_init("FMANY"),   _imp_str_init("OSTRING"),  _imp_str_init("FMLB"),
      _imp_str_init("FMRB"),     _imp_str_init("FMOR"),    _imp_str_init("RANGERB"),  _imp_str_init("FSID"),
      _imp_str_init(""),         _imp_str_init(""),        _imp_str_init(""),         _imp_str_init(""),
      _imp_str_init(""),         _imp_str_init("%DUMMY"),  _imp_str_init("%DECL"),    _imp_str_init("%TYPE"),
      _imp_str_init("%ZERO"),    _imp_str_init("%APPLY"),  _imp_str_init("%PROT"),    _imp_str_init("%SETPROT"),
      _imp_str_init("%PTYPE"),   _imp_str_init("%GAPP"),   _imp_str_init("%LOCAL"),   _imp_str_init("%GUARD"),
      _imp_str_init("%MCODE"),   _imp_str_init("%CDUMMY"), _imp_str_init("%SETTYPE"), _imp_str_init("%OPER"),
      _imp_str_init("%PARAM"),   _imp_str_init("%BLOCK"),  _imp_str_init("%OTHER"),   _imp_str_init("%COMPILE"),
      _imp_str_init("APP"),      _imp_str_init("BASEAPP"), _imp_str_init("APP2"),     _imp_str_init("APP3"),
      _imp_str_init("APP4"),     _imp_str_init("APP5"),    _imp_str_init("APP6"),     _imp_str_init("ADEFN"),
      _imp_str_init("NPARM"),    _imp_str_init("SWDEF"),   _imp_str_init("SWIDS"),    _imp_str_init("CIEXP"),
      _imp_str_init("RCONST"),   _imp_str_init("SCONST"),  _imp_str_init("ARRAYP"),   _imp_str_init("XIMP"),
      _imp_str_init("IMP"),      _imp_str_init("COND"),    _imp_str_init("SCOND"),    _imp_str_init("EXP1"),
      _imp_str_init("EXP2"),     _imp_str_init("SEXP"),    _imp_str_init("IEXP"),     _imp_str_init("IEXP1"),
      _imp_str_init("IEXP2"),    _imp_str_init("ISEXP"),   _imp_str_init("SEQ"),      _imp_str_init("FDEF"),
      _imp_str_init("EXP"),      _imp_str_init("NARRAYP"), _imp_str_init("STRUCT"),   _imp_str_init("RESEXP"),
      _imp_str_init("BPL"),      _imp_str_init("CONSTB"),  _imp_str_init("FITEM"),    _imp_str_init("MOREA"),
      _imp_str_init("CLIST"),    _imp_str_init("FPP"),     _imp_str_init("FPP0"),     _imp_str_init("FPP1"),
      _imp_str_init("FPP2"),     _imp_str_init("INITVAR"), _imp_str_init("RECEXP"),   _imp_str_init("EIMP"),
      _imp_str_init("IDENTS"),   _imp_str_init("RANGE"),   _imp_str_init("RCONSTB"),  _imp_str_init("VARP"),
      _imp_str_init("INITDEC"),  _imp_str_init(""),        _imp_str_init(""),         _imp_str_init(""),
      _imp_str_init("ESCDEC"),   _imp_str_init("ESCPROC"), _imp_str_init("ESCARRAY"), _imp_str_init("ESCREC")};
  _imp_create_constdv(const, _imp_string, TEXT, 0, 255);

  //   228+ "Z","VDEC","OWNVDEC","EXTVSPEC","ADEC","OWNADEC",
  //   229+ "EXTASPEC","PROC","PROCSPEC","FORMDEC","SWDEC","LDEC",
  //   230+ "FORMSPEC","","","","","",
  //   231+ "OPTION","COMMA","T","COLON","COMMENT","LB",
  //   232+ "ALIAS","RB","SUB","ARRAYD","STYPE","ARRAY",
  //   233+ "NAME","PROCD","FNMAP","SWITCH","OWN","EXTERNAL",
  //   234+ "STRING","RECORD","FORMAT","SPEC","MCODE","LABEL",
  //   235+ "OP1","OP2","OP3","SIGN","UOP","MOD",
  //   236+ "DOT","COMP","ACOMP","EQ","EQEQ","JAM",
  //   237+ "JUMP","RESOP","AND","OR","NOT","WHILE",
  //   238+ "UNTIL","FOR","CWORD","EXIT","ON","SIGNAL",
  //   239+ "THEN","START","ELSE","FINISH","FELSE","CYCLE",
  //   240+ "REPEAT","PROGRAM","BEGIN","END","ENDPROG","ENDPERM",
  //   241+ "FRESULT","MRESULT","BACK","MONITOR","STOP","LIST",
  //   242+ "","CONTROL","INCLUDE","MASS","RTYPE","ADDOP",
  //   243+ "IDENT","V","N","CONST","FM","",
  //   244+ "R","F","M","P","RP","FP",
  //   245+ "MP","PP","L","S","A","AN",
  //   246+ "NA","NAN","","","","",
  //   247+ "","","","","","",
  //   248+ "%MSTART","%CLEAR","%PRED","","%DUBIOUS","%DUP",
  //   249+ "%PIN","%POUT","%EDUP","","PIDENT","CIDENT",
  //   250+ "OIDENT","FNAME","SWID","DOTL","DOTR","ASEP",
  //   251+ "CSEP","OSEP","PSEP","ARB","BPLRB","ORB",
  //   252+ "PRB","CRB","RCRB","RECRB","RECLB","LAB",
  //   253+ "MLAB","SLAB","XNAME","OWNT","DBSEP","PCONST",
  //   254+ "CMOD","CSIGN","CUOP","COP1","COP2","COP3",
  //   255+ "INDEF","XELSE","CRESOP","NLAB","RUNTIL","ACONST",
  //   256+ "ORRB","FMANY","OSTRING","FMLB","FMRB","FMOR",
  //   257+ "RANGERB","FSID","","","","",
  //   258+ "","%DUMMY","%DECL","%TYPE","%ZERO","%APPLY",
  //   259+ "%PROT","%SETPROT","%PTYPE","%GAPP","%LOCAL","%GUARD",
  //   260+ "%MCODE","%CDUMMY","%SETTYPE","%OPER","%PARAM","%BLOCK",
  //   261+ "%OTHER","%COMPILE","APP","BASEAPP","APP2","APP3",
  //   262+ "APP4","APP5","APP6","ADEFN","NPARM","SWDEF",
  //   263+ "SWIDS","CIEXP","RCONST","SCONST","ARRAYP","XIMP",
  //   264+ "IMP","COND","SCOND","EXP1","EXP2","SEXP",
  //   265+ "IEXP","IEXP1","IEXP2","ISEXP","SEQ","FDEF",
  //   266+ "EXP","NARRAYP","STRUCT","RESEXP","BPL","CONSTB",
  //   267+ "FITEM","MOREA","CLIST","FPP","FPP0","FPP1",
  //   268+ "FPP2","INITVAR","RECEXP","EIMP","IDENTS","RANGE",
  //   269+ "RCONSTB","VARP","INITDEC","","","",
  //   270+ "ESCDEC","ESCPROC","ESCARRAY","ESCREC"
  //   271  %constinteger gmax1=718
  //   272  %owninteger gmax=718

  static int GMAX = 718;

  //   273  %constinteger imp phrase =24
  //   274
  //   275  %ownshortintegerarray phrase(200:255) = %C

  static short int PHRASE[56] = {0,   563, 564, 566, 568, 570, 572, 561, 613, 202, 199, 601, 477, 479,
                                 623, 297, 205, 307, 317, 432, 425, 436, 443, 457, 452, 460, 466, 481,
                                 401, 626, 628, 602, 520, 510, 485, 501, 574, 526, 527, 542, 549, 577,
                                 396, 286, 196, 635, 515, 620, 166, 0,   0,   0,   639, 692, 700, 708};
  _imp_create_constdv(static, short int, PHRASE, 200, 255);

  //   276+    0, 563, 564, 566, 568, 570, 572, 561,
  //   277+  613, 202, 199, 601, 477, 479, 623, 297,
  //   278+  205, 307, 317, 432, 425, 436, 443, 457,
  //   279+  452, 460, 466, 481, 401, 626, 628, 602,
  //   280+  520, 510, 485, 501, 574, 526, 527, 542,
  //   281+  549, 577, 396, 286, 196, 635, 515, 620,
  //   282+  166,   0,   0,   0, 639, 692, 700, 708
  //   283
  //   284  %constbyteintegerarray atomic(130:179) = %c

  const unsigned char ATOMIC[50] = {90, 90,  90,  90,  90,  48, 48, 19, 19, 19, 19, 25, 25,  25,  25,  25, 25,
                                    25, 23,  104, 104, 105, 30, 20, 21, 93, 47, 45, 46, 42,  43,  44,  40, 68,
                                    55, 104, 60,  93,  25,  40, 93, 23, 25, 57, 25, 90, 176, 177, 178, 179};
  _imp_create_constdv(const, unsigned char, ATOMIC, 130, 179);

  //   285+   90,  90,  90,  90,  90,  48,  48,  19,
  //   286+   19,  19,  19,  25,  25,  25,  25,  25,
  //   287+   25,  25,  23, 104, 104, 105,  30,  20,
  //   288+   21,  93,  47,  45,  46,  42,  43,  44,
  //   289+   40,  68,  55, 104,  60,  93,  25,  40,
  //   290+   93,  23,  25,  57,  25,  90, 176, 177,
  //   291+  178, 179
  //   292
  //   293  !  FLAG<1> 0<1> SS<2> 0<3> T<1> LINK<8>
  //   294  %constshortintegerarray initial(0:119) = %c

  const short int INITIAL[120] = {
      23,     0,      0,      0, 0,  0,  0,      0,      0,      0,      0,      0,      0, 0,  0,  0,  0, 0,
      22,     0,      0,      0, 0,  0,  0,      0,      0,      0,      0,      0,      0, 0,  0,  0,  0, 0,
      0,      0,      0,      0, 20, 0,  0,      0,      0,      0,      0,      0,      0, 0,  0,  0,  0, 0,
      -32552, 0,      0,      0, 0,  13, 0,      14,     4,      -32558, 16,     -32551, 0, 0,  5,  6,  3, 12,
      15,     8,      7,      9, 10, 11, -32559, -32555, -32560, -32553, -32554, 18,     0, 17, 21, 19, 0, 0,
      0,      -32563, -32561, 0, 0,  0,  -32562, 0,      0,      0,      0,      0,      0, 0,  1,  2,  0, -32557,
      0,      -32556, 0,      0, 0,  0,  0,      0,      0,      0,      0,      0};
  _imp_create_constdv(const, short int, INITIAL, 0, 119);

  //   295+       23,       0,       0,       0,       0,       0,       0,       0,
  //   296+        0,       0,       0,       0,       0,       0,       0,       0,
  //   297+        0,       0,      22,       0,       0,       0,       0,       0,
  //   298+        0,       0,       0,       0,       0,       0,       0,       0,
  //   299+        0,       0,       0,       0,       0,       0,       0,       0,
  //   300+       20,       0,       0,       0,       0,       0,       0,       0,
  //   301+        0,       0,       0,       0,       0,       0,  -32552,       0,
  //   302+        0,       0,       0,      13,       0,      14,       4,  -32558,
  //   303+       16,  -32551,       0,       0,       5,       6,       3,      12,
  //   304+       15,       8,       7,       9,      10,      11,  -32559,  -32555,
  //   305+   -32560,  -32553,  -32554,      18,       0,      17,      21,      19,
  //   306+        0,       0,       0,  -32563,  -32561,       0,       0,       0,
  //   307+   -32562,       0,       0,       0,       0,       0,       0,       0,
  //   308+        1,       2,       0,  -32557,       0,  -32556,       0,       0,
  //   309+        0,       0,       0,       0,       0,       0,       0,       0
  //   310
  //   311  !  MORE<1> 0<1> ORDER<2> TYPE<4> CLASS<8>
  //   312  %ownshortintegerarray gram(0:max grammar) = %c

  static short int GRAM[1801] = {
      0,      -28523, -28521, -28602, -32706, -28509, -28603, -24502, -24503, -20405, -20404, -28595,
      -32697, -32709, -16323, -28600, -32704, -28587, -28589, -32681, -16344, -28586, -16366, -32586,
      216,    -12287, -16380, -8185,  -8184,  -12285, -12286, -12283, -12282, -12279, -12276, -16373,
      20490,  -32706, -32701, 216,    -16364, -28610, -28613, -28612, 16445,  217,    -16364, 62,
      -32701, 16450,  -16364, 5346,   -16364, 166,    -16344, 4332,   130,    -16360, -16361, 126,
      217,    -32701, 216,    -16364, 16450,  -32700, 16404,  -32701, -32706, 216,    16405,  16407,
      -16222, 8414,   130,    217,    -32697, 16450,  1250,   4307,   4318,   192,    93,     170,
      90,     207,    -16365, 16404,  90,     -16360, -16365, 16404,  241,    -16365, 16404,  132,
      132,    -16360, 4329,   -16365, 16404,  133,    175,    90,     -16365, 16404,  209,    -16365,
      16404,  4313,   217,    16451,  4263,   16384,  16384,  120,    216,    -32700, 16404,  -32706,
      16404,  243,    16409,  454,    -32685, 16404,  454,    248,    -16365, 16404,  4263,   194,
      -16360, 4329,   -32717, 16404,  4263,   16407,  454,    237,    127,    215,    454,    4263,
      16384,  -16364, 1502,   -32629, -16361, 153,    -32606, 222,    143,    -32629, 153,    454,
      126,    16409,  454,    16384,  234,    -16365, -32595, 147,    -32678, 234,    193,    -32677,
      -32676, -32661, 109,    -32717, 53,     52,     52,     52,     194,    194,    194,    -28581,
      4188,   194,    -28566, 4203,   194,    -28564, 4205,   4580,   16429,  183,    183,    186,
      186,    -28583, 0,      9437,   90,     -16365, 0,      134,    -16365, 0,      210,    4329,
      199,    -32677, -32672, -32676, -32688, -32690, -32705, -32661, -32659, -32689, -32686, -32687,
      -16330, 65,     -32716, 186,    -28583, -32717, -32715, -32713, 52,     -32664, 4201,   186,
      -32717, -32715, 55,     -16328, 0,      197,    197,    52,     52,     197,    -28581, -28580,
      186,    -28581, 4188,   4318,   194,    -28581, 4188,   9437,   194,    194,    454,    16407,
      216,    194,    -28566, -28565, 186,    -28566, 4203,   194,    -28564, -28563, 186,    -28564,
      4205,   183,    183,    186,    183,    -16365, 0,      183,    4580,   16429,  5095,   9444,
      5348,   186,    -28583, -16328, 0,      16409,  -16365, 0,      9437,   5348,   217,    -32701,
      16450,  -32701, 216,    -32700, 0,      -32701, -32706, 216,    243,    217,    -16318, 0,
      -32552, 0,      -32700, 0,      -32706, 0,      215,    -32550, 228,    -28616, -28615, 0,
      4096,   218,    218,    -28616, 0,      -32677, -32676, -16361, -32710, -32669, -32662, -32661,
      -32660, -32659, 740,    -32039, 740,    -32719, 4096,   194,    -32719, -32718, -32604, -32726,
      -32725, -32724, -32720, 4096,   710,    6116,   -32719, 0,      710,    6116,   -28581, 4188,
      218,    122,    50,     16409,  -32726, -32725, -32724, -32719, 4096,   710,    454,    195,
      195,    195,    454,    -28581, 4188,   194,    -28566, -28565, -28564, 4205,   195,    195,
      195,    710,    4836,   5095,   4829,   -32726, -32725, -32724, -32719, 4096,   4827,   4828,
      454,    -32720, -32719, 4096,   4829,   4827,   4828,   194,    -32719, 0,      710,    4836,
      -16291, -32677, 92,     184,    121,    -28581, -28580, -32722, -32723, 4317,   -32726, -32725,
      -32724, 0,      183,    -32726, -32725, -32724, -32720, 0,      4316,   195,    195,    195,
      454,    -28581, 4188,   4315,   183,    4317,   -32726, -32725, 0,      195,    195,    4315,
      4317,   -32726, 0,      195,    -32677, -32676, -16361, 16431,  228,    228,    47,     -32610,
      -32611, 5345,   -32609, -32608, -32607, 0,      4320,   4319,   5345,   -32609, -32608, 0,
      4319,   5345,   -32609, 0,      -32613, -16361, 16431,  222,    222,    156,    -32677, 92,
      183,    186,    1222,   16435,  228,    16403,  4324,   138,    8420,   -32723, 4189,   93,
      454,    148,    -32674, 16546,  16409,  -32597, 182,    -16383, 16388,  234,    -16365, -32595,
      172,    -32678, 234,    90,     244,    246,    -16365, 0,      235,    -32678, 234,    -16365,
      246,    -16365, 0,      -32678, 234,    90,     16407,  222,    16405,  222,    145,    16407,
      222,    16405,  222,    146,    16407,  1252,   154,    5348,   -16365, 142,    126,    182,
      -16383, 16391,  90,     -16365, 127,    -32678, 238,    90,     125,    239,    -16365, 8319,
      8430,   128,    126,    -16361, 127,    190,    240,    189,    16409,  182,    -16383, 16391,
      90,     -16365, 0,      -32678, 240,    90,     16623,  -16365, 0,      244,    232,    1252,
      1252,   137,    1252,   137,    1252,   137,    1252,   137,    1252,   137,    222,    -16365,
      0,      131,    194,    -16360, -16333, -16332, 124,    181,    -16292, -16277, 16493,  -31802,
      5342,   -28581, 4188,   4263,   181,    186,    454,    16475,  183,    -28583, 199,    5598,
      9438,   222,    -32677, -32676, 16407,  186,    228,    135,    16409,  -32632, 0,      -32677,
      92,     -32677, -32676, -32662, -32661, -32660, -32659, 165,    -32677, 92,     188,    -32662,
      107,    188,    -32660, 109,    -32732, 37,     -16344, 4318,   148,    -32674, 16424,  222,
      16405,  222,    174,    -28644, -32734, -32680, -28641, -32733, -32730, -32735, -32727, -32738,
      4326,   -32738, -32739, -32741, -32736, 199,    -28644, -32680, -28641, 4326,   -32739, -32741,
      199,    -32738, -32739, -32741, -32736, -32729, 199,    -32616, 199,    -32739, -32741, -32729,
      199,    -32616, -32729, 199,    -28644, -32680, 4326,   -32738, -32739, -32741, 199,    245,
      4318,   245,    16409,  152,    4318,   16409,  152,    245,    -32672, -32671, -32670, 99,
      16407,  200,    144,    185,    -32677, 92,     16407,  -32582, 200,    200,    187,    141,
      -32677, 92,     16410,  191,    -32677, -32676, -32662, -32661, -32660, 109,    198,    [719 ... 1800] = 0};
  _imp_create_constdv(static, short int, GRAM, 0, 1800);

  //   313+        0,  -28523,  -28521,  -28602,  -32706,  -28509,  -28603,  -24502,
  //   314+   -24503,  -20405,  -20404,  -28595,  -32697,  -32709,  -16323,  -28600,
  //   315+   -32704,  -28587,  -28589,  -32681,  -16344,  -28586,  -16366,  -32586,
  //   316+      216,  -12287,  -16380,   -8185,   -8184,  -12285,  -12286,  -12283,
  //   317+   -12282,  -12279,  -12276,  -16373,   20490,  -32706,  -32701,     216,
  //   318+   -16364,  -28610,  -28613,  -28612,   16445,     217,  -16364,      62,
  //   319+   -32701,   16450,  -16364,    5346,  -16364,     166,  -16344,    4332,
  //   320+      130,  -16360,  -16361,     126,     217,  -32701,     216,  -16364,
  //   321+    16450,  -32700,   16404,  -32701,  -32706,     216,   16405,   16407,
  //   322+   -16222,    8414,     130,     217,  -32697,   16450,    1250,    4307,
  //   323+     4318,     192,      93,     170,      90,     207,  -16365,   16404,
  //   324+       90,  -16360,  -16365,   16404,     241,  -16365,   16404,     132,
  //   325+      132,  -16360,    4329,  -16365,   16404,     133,     175,      90,
  //   326+   -16365,   16404,     209,  -16365,   16404,    4313,     217,   16451,
  //   327+     4263,   16384,   16384,     120,     216,  -32700,   16404,  -32706,
  //   328+    16404,     243,   16409,     454,  -32685,   16404,     454,     248,
  //   329+   -16365,   16404,    4263,     194,  -16360,    4329,  -32717,   16404,
  //   330+     4263,   16407,     454,     237,     127,     215,     454,    4263,
  //   331+    16384,  -16364,    1502,  -32629,  -16361,     153,  -32606,     222,
  //   332+      143,  -32629,     153,     454,     126,   16409,     454,   16384,
  //   333+      234,  -16365,  -32595,     147,  -32678,     234,     193,  -32677,
  //   334+   -32676,  -32661,     109,  -32717,      53,      52,      52,      52,
  //   335+      194,     194,     194,  -28581,    4188,     194,  -28566,    4203,
  //   336+      194,  -28564,    4205,    4580,   16429,     183,     183,     186,
  //   337+      186,  -28583,       0,    9437,      90,  -16365,       0,     134,
  //   338+   -16365,       0,     210,    4329,     199,  -32677,  -32672,  -32676,
  //   339+   -32688,  -32690,  -32705,  -32661,  -32659,  -32689,  -32686,  -32687,
  //   340+   -16330,      65,  -32716,     186,  -28583,  -32717,  -32715,  -32713,
  //   341+       52,  -32664,    4201,     186,  -32717,  -32715,      55,  -16328,
  //   342+        0,     197,     197,      52,      52,     197,  -28581,  -28580,
  //   343+      186,  -28581,    4188,    4318,     194,  -28581,    4188,    9437,
  //   344+      194,     194,     454,   16407,     216,     194,  -28566,  -28565,
  //   345+      186,  -28566,    4203,     194,  -28564,  -28563,     186,  -28564,
  //   346+     4205,     183,     183,     186,     183,  -16365,       0,     183,
  //   347+     4580,   16429,    5095,    9444,    5348,     186,  -28583,  -16328,
  //   348+        0,   16409,  -16365,       0,    9437,    5348,     217,  -32701,
  //   349+    16450,  -32701,     216,  -32700,       0,  -32701,  -32706,     216,
  //   350+      243,     217,  -16318,       0,  -32552,       0,  -32700,       0,
  //   351+   -32706,       0,     215,  -32550,     228,  -28616,  -28615,       0,
  //   352+     4096,     218,     218,  -28616,       0,  -32677,  -32676,  -16361,
  //   353+   -32710,  -32669,  -32662,  -32661,  -32660,  -32659,     740,  -32039,
  //   354+      740,  -32719,    4096,     194,  -32719,  -32718,  -32604,  -32726,
  //   355+   -32725,  -32724,  -32720,    4096,     710,    6116,  -32719,       0,
  //   356+      710,    6116,  -28581,    4188,     218,     122,      50,   16409,
  //   357+   -32726,  -32725,  -32724,  -32719,    4096,     710,     454,     195,
  //   358+      195,     195,     454,  -28581,    4188,     194,  -28566,  -28565,
  //   359+   -28564,    4205,     195,     195,     195,     710,    4836,    5095,
  //   360+     4829,  -32726,  -32725,  -32724,  -32719,    4096,    4827,    4828,
  //   361+      454,  -32720,  -32719,    4096,    4829,    4827,    4828,     194,
  //   362+   -32719,       0,     710,    4836,  -16291,  -32677,      92,     184,
  //   363+      121,  -28581,  -28580,  -32722,  -32723,    4317,  -32726,  -32725,
  //   364+   -32724,       0,     183,  -32726,  -32725,  -32724,  -32720,       0,
  //   365+     4316,     195,     195,     195,     454,  -28581,    4188,    4315,
  //   366+      183,    4317,  -32726,  -32725,       0,     195,     195,    4315,
  //   367+     4317,  -32726,       0,     195,  -32677,  -32676,  -16361,   16431,
  //   368+      228,     228,      47,  -32610,  -32611,    5345,  -32609,  -32608,
  //   369+   -32607,       0,    4320,    4319,    5345,  -32609,  -32608,       0,
  //   370+     4319,    5345,  -32609,       0,  -32613,  -16361,   16431,     222,
  //   371+      222,     156,  -32677,      92,     183,     186,    1222,   16435,
  //   372+      228,   16403,    4324,     138,    8420,  -32723,    4189,      93,
  //   373+      454,     148,  -32674,   16546,   16409,  -32597,     182,  -16383,
  //   374+    16388,     234,  -16365,  -32595,     172,  -32678,     234,      90,
  //   375+      244,     246,  -16365,       0,     235,  -32678,     234,  -16365,
  //   376+      246,  -16365,       0,  -32678,     234,      90,   16407,     222,
  //   377+    16405,     222,     145,   16407,     222,   16405,     222,     146,
  //   378+    16407,    1252,     154,    5348,  -16365,     142,     126,     182,
  //   379+   -16383,   16391,      90,  -16365,     127,  -32678,     238,      90,
  //   380+      125,     239,  -16365,    8319,    8430,     128,     126,  -16361,
  //   381+      127,     190,     240,     189,   16409,     182,  -16383,   16391,
  //   382+       90,  -16365,       0,  -32678,     240,      90,   16623,  -16365,
  //   383+        0,     244,     232,    1252,    1252,     137,    1252,     137,
  //   384+     1252,     137,    1252,     137,    1252,     137,     222,  -16365,
  //   385+        0,     131,     194,  -16360,  -16333,  -16332,     124,     181,
  //   386+   -16292,  -16277,   16493,  -31802,    5342,  -28581,    4188,    4263,
  //   387+      181,     186,     454,   16475,     183,  -28583,     199,    5598,
  //   388+     9438,     222,  -32677,  -32676,   16407,     186,     228,     135,
  //   389+    16409,  -32632,       0,  -32677,      92,  -32677,  -32676,  -32662,
  //   390+   -32661,  -32660,  -32659,     165,  -32677,      92,     188,  -32662,
  //   391+      107,     188,  -32660,     109,  -32732,      37,  -16344,    4318,
  //   392+      148,  -32674,   16424,     222,   16405,     222,     174,  -28644,
  //   393+   -32734,  -32680,  -28641,  -32733,  -32730,  -32735,  -32727,  -32738,
  //   394+     4326,  -32738,  -32739,  -32741,  -32736,     199,  -28644,  -32680,
  //   395+   -28641,    4326,  -32739,  -32741,     199,  -32738,  -32739,  -32741,
  //   396+   -32736,  -32729,     199,  -32616,     199,  -32739,  -32741,  -32729,
  //   397+      199,  -32616,  -32729,     199,  -28644,  -32680,    4326,  -32738,
  //   398+   -32739,  -32741,     199,     245,    4318,     245,   16409,     152,
  //   399+     4318,   16409,     152,     245,  -32672,  -32671,  -32670,      99,
  //   400+    16407,     200,     144,     185,  -32677,      92,   16407,  -32582,
  //   401+      200,     200,     187,     141,  -32677,      92,   16410,     191,
  //   402+   -32677,  -32676,  -32662,  -32661,  -32660,     109,     198,
  //   403+ 0(max grammar-718)
  //   404
  //   405  %ownshortintegerarray glink(0:max grammar) = %c

  static short int GLINK[1801] = {
      -1,  70,  71,  37,  45,  46,  66,  66,  74,  66,  0,   66,  50,  75,  78,  52,  54,  79,
      66,  80,  81,  82,  83,  25,  40,  84,  85,  56,  56,  88,  92,  95,  96,  101, 102, 103,
      106, 45,  66,  66,  0,   109, 109, 110, 51,  48,  0,   60,  66,  61,  0,   66,  0,   110,
      111, 111, 57,  112, 113, 114, 63,  66,  65,  115, 116, 67,  0,   66,  121, 66,  0,   72,
      122, 122, 66,  76,  66,  39,  76,  66,  66,  0,   123, 126, 127, 86,  85,  0,   89,  130,
      88,  0,   93,  92,  0,   131, 97,  136, 99,  96,  0,   137, 66,  104, 103, 0,   107, 106,
      0,   66,  66,  66,  138, 139, 140, 0,   117, 119, 115, 141, 115, 66,  70,  124, 66,  0,
      66,  128, 84,  0,   142, 132, 143, 134, 144, 0,   155, 156, 58,  157, 66,  118, 90,  158,
      145, 144, 147, 145, 150, 0,   152, 152, 153, 145, 0,   98,  159, 66,  133, 160, 161, 164,
      160, 140, 161, 161, 167, 171, 173, 174, 175, 176, 177, 178, 181, 184, 187, 188, 179, 189,
      189, 182, 190, 190, 185, 190, 190, 0,   187, 191, 192, 193, 0,   195, 0,   0,   197, 196,
      0,   200, 199, 0,   203, 204, 0,   227, 231, 218, 233, 234, 0,   235, 236, 237, 0,   231,
      225, 243, 244, 220, 247, 248, 249, 250, 244, 0,   251, 228, 248, 249, 250, 252, 0,   0,
      187, 253, 259, 238, 268, 268, 241, 190, 190, 269, 245, 271, 271, 228, 272, 273, 274, 275,
      0,   254, 265, 265, 257, 266, 266, 260, 265, 265, 263, 266, 266, 231, 267, 231, 0,   276,
      0,   277, 231, 272, 231, 281, 282, 278, 284, 252, 0,   0,   285, 0,   231, 0,   287, 0,
      289, 0,   291, 293, 0,   0,   296, 0,   0,   298, 300, 0,   302, 0,   304, 0,   306, 0,
      0,   309, 312, 313, 314, 0,   0,   315, 310, 313, 0,   331, 331, 327, 348, 349, 350, 350,
      350, 350, 329, 281, 351, 357, 0,   332, 340, 346, 358, 359, 360, 361, 362, 0,   341, 342,
      344, 0,   345, 0,   268, 268, 0,   0,   365, 352, 370, 371, 372, 373, 0,   374, 375, 376,
      382, 383, 363, 384, 384, 366, 268, 268, 268, 268, 388, 389, 390, 391, 392, 0,   377, 359,
      360, 361, 340, 0,   378, 379, 385, 362, 340, 0,   352, 353, 354, 374, 394, 0,   395, 0,
      399, 268, 268, 400, 0,   410, 410, 405, 416, 406, 417, 418, 419, 0,   411, 417, 418, 419,
      420, 0,   408, 405, 423, 416, 421, 424, 424, 407, 414, 426, 429, 430, 0,   425, 431, 427,
      433, 435, 0,   432, 268, 268, 440, 441, 281, 442, 0,   445, 450, 446, 445, 451, 450, 0,
      448, 447, 453, 452, 456, 0,   454, 458, 457, 0,   268, 463, 464, 281, 465, 0,   468, 468,
      469, 470, 471, 472, 473, 474, 475, 476, 0,   478, 268, 480, 0,   482, 484, 484, 204, 489,
      487, 495, 496, 490, 493, 489, 0,   490, 490, 0,   497, 498, 500, 0,   0,   503, 505, 509,
      498, 507, 0,   505, 505, 503, 511, 512, 513, 514, 0,   516, 517, 518, 519, 0,   521, 522,
      523, 524, 521, 0,   527, 528, 530, 535, 531, 533, 0,   531, 0,   536, 537, 538, 540, 541,
      541, 0,   543, 545, 0,   546, 547, 548, 532, 550, 552, 557, 553, 555, 0,   553, 0,   558,
      559, 556, 0,   562, 204, 0,   565, 563, 567, 564, 569, 566, 571, 568, 573, 570, 575, 574,
      0,   578, 579, 591, 592, 583, 204, 584, 587, 587, 587, 589, 204, 593, 593, 594, 595, 596,
      580, 599, 597, 600, 0,   204, 204, 204, 605, 605, 606, 607, 608, 604, 609, 611, 0,   192,
      192, 192, 192, 192, 192, 192, 192, 0,   622, 622, 191, 625, 625, 0,   625, 625, 630, 632,
      281, 281, 633, 281, 281, 636, 637, 638, 0,   649, 676, 683, 665, 654, 204, 204, 204, 204,
      649, 658, 667, 684, 665, 0,   661, 685, 665, 661, 667, 684, 0,   669, 673, 688, 665, 204,
      0,   204, 0,   673, 688, 204, 0,   665, 204, 0,   679, 691, 679, 658, 667, 684, 0,   649,
      686, 661, 687, 204, 689, 690, 665, 679, 696, 696, 696, 696, 697, 698, 699, 0,   702, 702,
      703, 705, 706, 707, 707, 699, 710, 710, 711, 712, 718, 718, 718, 718, 718, 718, 0,   [719 ... 1800] = 0};
  _imp_create_constdv(static, short int, GLINK, 0, 1800);

  //   406+       -1,      70,      71,      37,      45,      46,      66,      66,
  //   407+       74,      66,       0,      66,      50,      75,      78,      52,
  //   408+       54,      79,      66,      80,      81,      82,      83,      25,
  //   409+       40,      84,      85,      56,      56,      88,      92,      95,
  //   410+       96,     101,     102,     103,     106,      45,      66,      66,
  //   411+        0,     109,     109,     110,      51,      48,       0,      60,
  //   412+       66,      61,       0,      66,       0,     110,     111,     111,
  //   413+       57,     112,     113,     114,      63,      66,      65,     115,
  //   414+      116,      67,       0,      66,     121,      66,       0,      72,
  //   415+      122,     122,      66,      76,      66,      39,      76,      66,
  //   416+       66,       0,     123,     126,     127,      86,      85,       0,
  //   417+       89,     130,      88,       0,      93,      92,       0,     131,
  //   418+       97,     136,      99,      96,       0,     137,      66,     104,
  //   419+      103,       0,     107,     106,       0,      66,      66,      66,
  //   420+      138,     139,     140,       0,     117,     119,     115,     141,
  //   421+      115,      66,      70,     124,      66,       0,      66,     128,
  //   422+       84,       0,     142,     132,     143,     134,     144,       0,
  //   423+      155,     156,      58,     157,      66,     118,      90,     158,
  //   424+      145,     144,     147,     145,     150,       0,     152,     152,
  //   425+      153,     145,       0,      98,     159,      66,     133,     160,
  //   426+      161,     164,     160,     140,     161,     161,     167,     171,
  //   427+      173,     174,     175,     176,     177,     178,     181,     184,
  //   428+      187,     188,     179,     189,     189,     182,     190,     190,
  //   429+      185,     190,     190,       0,     187,     191,     192,     193,
  //   430+        0,     195,       0,       0,     197,     196,       0,     200,
  //   431+      199,       0,     203,     204,       0,     227,     231,     218,
  //   432+      233,     234,       0,     235,     236,     237,       0,     231,
  //   433+      225,     243,     244,     220,     247,     248,     249,     250,
  //   434+      244,       0,     251,     228,     248,     249,     250,     252,
  //   435+        0,       0,     187,     253,     259,     238,     268,     268,
  //   436+      241,     190,     190,     269,     245,     271,     271,     228,
  //   437+      272,     273,     274,     275,       0,     254,     265,     265,
  //   438+      257,     266,     266,     260,     265,     265,     263,     266,
  //   439+      266,     231,     267,     231,       0,     276,       0,     277,
  //   440+      231,     272,     231,     281,     282,     278,     284,     252,
  //   441+        0,       0,     285,       0,     231,       0,     287,       0,
  //   442+      289,       0,     291,     293,       0,       0,     296,       0,
  //   443+        0,     298,     300,       0,     302,       0,     304,       0,
  //   444+      306,       0,       0,     309,     312,     313,     314,       0,
  //   445+        0,     315,     310,     313,       0,     331,     331,     327,
  //   446+      348,     349,     350,     350,     350,     350,     329,     281,
  //   447+      351,     357,       0,     332,     340,     346,     358,     359,
  //   448+      360,     361,     362,       0,     341,     342,     344,       0,
  //   449+      345,       0,     268,     268,       0,       0,     365,     352,
  //   450+      370,     371,     372,     373,       0,     374,     375,     376,
  //   451+      382,     383,     363,     384,     384,     366,     268,     268,
  //   452+      268,     268,     388,     389,     390,     391,     392,       0,
  //   453+      377,     359,     360,     361,     340,       0,     378,     379,
  //   454+      385,     362,     340,       0,     352,     353,     354,     374,
  //   455+      394,       0,     395,       0,     399,     268,     268,     400,
  //   456+        0,     410,     410,     405,     416,     406,     417,     418,
  //   457+      419,       0,     411,     417,     418,     419,     420,       0,
  //   458+      408,     405,     423,     416,     421,     424,     424,     407,
  //   459+      414,     426,     429,     430,       0,     425,     431,     427,
  //   460+      433,     435,       0,     432,     268,     268,     440,     441,
  //   461+      281,     442,       0,     445,     450,     446,     445,     451,
  //   462+      450,       0,     448,     447,     453,     452,     456,       0,
  //   463+      454,     458,     457,       0,     268,     463,     464,     281,
  //   464+      465,       0,     468,     468,     469,     470,     471,     472,
  //   465+      473,     474,     475,     476,       0,     478,     268,     480,
  //   466+        0,     482,     484,     484,     204,     489,     487,     495,
  //   467+      496,     490,     493,     489,       0,     490,     490,       0,
  //   468+      497,     498,     500,       0,       0,     503,     505,     509,
  //   469+      498,     507,       0,     505,     505,     503,     511,     512,
  //   470+      513,     514,       0,     516,     517,     518,     519,       0,
  //   471+      521,     522,     523,     524,     521,       0,     527,     528,
  //   472+      530,     535,     531,     533,       0,     531,       0,     536,
  //   473+      537,     538,     540,     541,     541,       0,     543,     545,
  //   474+        0,     546,     547,     548,     532,     550,     552,     557,
  //   475+      553,     555,       0,     553,       0,     558,     559,     556,
  //   476+        0,     562,     204,       0,     565,     563,     567,     564,
  //   477+      569,     566,     571,     568,     573,     570,     575,     574,
  //   478+        0,     578,     579,     591,     592,     583,     204,     584,
  //   479+      587,     587,     587,     589,     204,     593,     593,     594,
  //   480+      595,     596,     580,     599,     597,     600,       0,     204,
  //   481+      204,     204,     605,     605,     606,     607,     608,     604,
  //   482+      609,     611,       0,     192,     192,     192,     192,     192,
  //   483+      192,     192,     192,       0,     622,     622,     191,     625,
  //   484+      625,       0,     625,     625,     630,     632,     281,     281,
  //   485+      633,     281,     281,     636,     637,     638,       0,     649,
  //   486+      676,     683,     665,     654,     204,     204,     204,     204,
  //   487+      649,     658,     667,     684,     665,       0,     661,     685,
  //   488+      665,     661,     667,     684,       0,     669,     673,     688,
  //   489+      665,     204,       0,     204,       0,     673,     688,     204,
  //   490+        0,     665,     204,       0,     679,     691,     679,     658,
  //   491+      667,     684,       0,     649,     686,     661,     687,     204,
  //   492+      689,     690,     665,     679,     696,     696,     696,     696,
  //   493+      697,     698,     699,       0,     702,     702,     703,     705,
  //   494+      706,     707,     707,     699,     710,     710,     711,     712,
  //   495+      718,     718,     718,     718,     718,     718,       0,
  //   496+ 0(max grammar-718)
  //   497
  //   498  %constshortintegerarray kdict(32:596) = %c

  const short int KDICT[565] = {
      0,      511,    131,    531,    131,    551,    559,    131,    567,    575,    583,    603,    623,    631,
      663,    671,    129,    129,    129,    129,    129,    129,    129,    129,    129,    129,    691,    698,
      707,    751,    795,    131,    131,    824,    900,    960,    1076,   1120,   1280,   128,    128,    1392,
      128,    128,    1460,   1556,   1592,   1660,   1748,   128,    1828,   2000,   2196,   2228,   128,    2268,
      128,    128,    128,    2287,   2295,   2327,   2335,   2355,   131,    131,    131,    131,    131,    131,
      131,    131,    131,    131,    131,    131,    131,    131,    131,    131,    131,    131,    131,    131,
      131,    131,    131,    131,    131,    131,    131,    131,    2363,   131,    2335,   -32351, 16428,  25,
      16428,  29,     -32349, 16433,  1,      16434,  1,      -16127, 0,      16427,  21,     16407,  0,      16409,
      0,      -32323, -10840, 40,     16471,  0,      -32341, -10580, 32,     16473,  117,    16384,  19,     -31955,
      -32322, -10580, 36,     -9290,  0,      16473,  113,    16432,  13,     -32337, 16427,  46,     16427,  17,
      16405,  0,      16404,  0,      -31556, -31939, -32322, -9551,  2,      16433,  1,      16433,  5,      16426,
      5,      -31606, -32323, -9807,  0,      -32374, -9678,  0,      16436,  0,      16435,  0,      -31939, -32322,
      16433,  4,      16426,  9,      16433,  3,      -30772, -31666, 10578,  11457,  -32344, 16413,  2,      16411,
      2,      68,     -32374, 16440,  0,      16440,  0,      8393,   83,     16408,  0,      -31291, 10841,  69,
      -32311, 16412,  18,     10830,  9157,   10565,  16412,  18,     9415,   78,     16458,  0,      -32049, 8665,
      8908,   16455,  0,      -30131, 78,     -31277, 84,     -32055, 10194,  76,     16469,  0,      10958,  69,
      16447,  32,     84,     -32319, 16418,  2,      10830,  16418,  2,      8909,   10830,  16406,  0,      -31927,
      10073,  9921,   8649,   16419,  5,      9153,   10190,  8915,   16469,  1,      -27956, -31282, 88,     -31927,
      8916,   10066,  9793,   16419,  3,      84,     16447,  4,      68,     -32305, 16459,  2,      70,     -30650,
      -31284, 80,     -31931, 10194,  10567,  9921,   16460,  1,      9938,   16461,  0,      10697,  84,     16467,
      3,      9801,   69,     16460,  0,      8915,   16452,  0,      -29631, -30903, -31282, -31793, 10069,  10819,
      10185,  78,     16416,  9,      82,     16445,  0,      16416,  9,      9422,   9299,   -32315, 16453,  0,
      10700,  69,     16454,  0,      10700,  69,     16464,  1210,   -30778, 78,     -31549, 8916,   8903,   82,
      -32344, 16412,  17,     16472,  17,     10956,  8900,   16470,  0,      16446,  44,     -30143, -30647, 10063,
      71,     -31671, -32302, 16412,  20,     8389,   76,     16412,  36,     10830,  9157,   10565,  16412,  20,
      10835,  16467,  1,      8898,   76,     16425,  6,      -31935, 10063,  10825,  10575,  16465,  109,    80,
      16416,  10,     -32191, 10831,  16442,  0,      8909,   -32314, 16414,  1,      -31794, 10069,  10819,  10185,
      78,     16416,  10,     16416,  10,     -30770, -31408, -32174, 10071,  16418,  1,      -32374, 16441,  2,
      16441,  2,      9428,   10063,  16402,  0,      -32315, 16448,  0,      8918,   10830,  16448,  0,      -30523,
      82,     -31419, -31927, 9167,   8402,   77,     16457,  0,      77,     16419,  6,      9412,   8387,   8916,
      16415,  123,    9938,   16419,  7,      -31931, 10959,  9428,   8910,   16415,  104,    -28351, -30397, -31024,
      -32045, 10964,  10066,  16464,  1319,   9813,   7892,   -32323, 16462,  1384,   16463,  1241,   8389,   84,
      16456,  0,      10575,  68,     -32314, 16421,  64,     10575,  8397,   84,     -32301, 16422,  9,      8912,
      67,     16422,  12,     76,     16412,  33,     -27704, -28983, -29488, -31276, -31913, 10713,  8916,   77,
      16419,  4,      10825,  9283,   16417,  12,     -31423, -31921, 9426,   9166,   40,     16420,  48,     80,
      16466,  115,    10834,  16451,  0,      8645,   16423,  0,      10055,  9793,   -32315, 16449,  0,      8918,
      10830,  16449,  0,      10575,  84,     -32311, 16412,  19,     10830,  9157,   10565,  16412,  19,     -32056,
      10962,  69,     16464,  1354,   10053,  16450,  0,      78,     -32052, 9428,   76,     16444,  182,    10693,
      83,     16446,  46,     9416,   8908,   16443,  180,    16407,  0,      -31939, -32292, -10454, 51,     16426,
      13,     16433,  1,      16409,  0,      -32290, -10454, 51,     16426,  13,     16410,  0,      16431,  14,
      -32323, 16430,  51,     16433,  1};
  _imp_create_constdv(const, short int, KDICT, 32, 596);

  //   499+        0,     511,     131,     531,     131,     551,     559,     131,
  //   500+      567,     575,     583,     603,     623,     631,     663,     671,
  //   501+      129,     129,     129,     129,     129,     129,     129,     129,
  //   502+      129,     129,     691,     698,     707,     751,     795,     131,
  //   503+      131,     824,     900,     960,    1076,    1120,    1280,     128,
  //   504+      128,    1392,     128,     128,    1460,    1556,    1592,    1660,
  //   505+     1748,     128,    1828,    2000,    2196,    2228,     128,    2268,
  //   506+      128,     128,     128,    2287,    2295,    2327,    2335,    2355,
  //   507+      131,     131,     131,     131,     131,     131,     131,     131,
  //   508+      131,     131,     131,     131,     131,     131,     131,     131,
  //   509+      131,     131,     131,     131,     131,     131,     131,     131,
  //   510+      131,     131,     131,     131,    2363,     131,    2335,  -32351,
  //   511+    16428,      25,   16428,      29,  -32349,   16433,       1,   16434,
  //   512+        1,  -16127,       0,   16427,      21,   16407,       0,   16409,
  //   513+        0,  -32323,  -10840,      40,   16471,       0,  -32341,  -10580,
  //   514+       32,   16473,     117,   16384,      19,  -31955,  -32322,  -10580,
  //   515+       36,   -9290,       0,   16473,     113,   16432,      13,  -32337,
  //   516+    16427,      46,   16427,      17,   16405,       0,   16404,       0,
  //   517+   -31556,  -31939,  -32322,   -9551,       2,   16433,       1,   16433,
  //   518+        5,   16426,       5,  -31606,  -32323,   -9807,       0,  -32374,
  //   519+    -9678,       0,   16436,       0,   16435,       0,  -31939,  -32322,
  //   520+    16433,       4,   16426,       9,   16433,       3,  -30772,  -31666,
  //   521+    10578,   11457,  -32344,   16413,       2,   16411,       2,      68,
  //   522+   -32374,   16440,       0,   16440,       0,    8393,      83,   16408,
  //   523+        0,  -31291,   10841,      69,  -32311,   16412,      18,   10830,
  //   524+     9157,   10565,   16412,      18,    9415,      78,   16458,       0,
  //   525+   -32049,    8665,    8908,   16455,       0,  -30131,      78,  -31277,
  //   526+       84,  -32055,   10194,      76,   16469,       0,   10958,      69,
  //   527+    16447,      32,      84,  -32319,   16418,       2,   10830,   16418,
  //   528+        2,    8909,   10830,   16406,       0,  -31927,   10073,    9921,
  //   529+     8649,   16419,       5,    9153,   10190,    8915,   16469,       1,
  //   530+   -27956,  -31282,      88,  -31927,    8916,   10066,    9793,   16419,
  //   531+        3,      84,   16447,       4,      68,  -32305,   16459,       2,
  //   532+       70,  -30650,  -31284,      80,  -31931,   10194,   10567,    9921,
  //   533+    16460,       1,    9938,   16461,       0,   10697,      84,   16467,
  //   534+        3,    9801,      69,   16460,       0,    8915,   16452,       0,
  //   535+   -29631,  -30903,  -31282,  -31793,   10069,   10819,   10185,      78,
  //   536+    16416,       9,      82,   16445,       0,   16416,       9,    9422,
  //   537+     9299,  -32315,   16453,       0,   10700,      69,   16454,       0,
  //   538+    10700,      69,   16464,    1210,  -30778,      78,  -31549,    8916,
  //   539+     8903,      82,  -32344,   16412,      17,   16472,      17,   10956,
  //   540+     8900,   16470,       0,   16446,      44,  -30143,  -30647,   10063,
  //   541+       71,  -31671,  -32302,   16412,      20,    8389,      76,   16412,
  //   542+       36,   10830,    9157,   10565,   16412,      20,   10835,   16467,
  //   543+        1,    8898,      76,   16425,       6,  -31935,   10063,   10825,
  //   544+    10575,   16465,     109,      80,   16416,      10,  -32191,   10831,
  //   545+    16442,       0,    8909,  -32314,   16414,       1,  -31794,   10069,
  //   546+    10819,   10185,      78,   16416,      10,   16416,      10,  -30770,
  //   547+   -31408,  -32174,   10071,   16418,       1,  -32374,   16441,       2,
  //   548+    16441,       2,    9428,   10063,   16402,       0,  -32315,   16448,
  //   549+        0,    8918,   10830,   16448,       0,  -30523,      82,  -31419,
  //   550+   -31927,    9167,    8402,      77,   16457,       0,      77,   16419,
  //   551+        6,    9412,    8387,    8916,   16415,     123,    9938,   16419,
  //   552+        7,  -31931,   10959,    9428,    8910,   16415,     104,  -28351,
  //   553+   -30397,  -31024,  -32045,   10964,   10066,   16464,    1319,    9813,
  //   554+     7892,  -32323,   16462,    1384,   16463,    1241,    8389,      84,
  //   555+    16456,       0,   10575,      68,  -32314,   16421,      64,   10575,
  //   556+     8397,      84,  -32301,   16422,       9,    8912,      67,   16422,
  //   557+       12,      76,   16412,      33,  -27704,  -28983,  -29488,  -31276,
  //   558+   -31913,   10713,    8916,      77,   16419,       4,   10825,    9283,
  //   559+    16417,      12,  -31423,  -31921,    9426,    9166,      40,   16420,
  //   560+       48,      80,   16466,     115,   10834,   16451,       0,    8645,
  //   561+    16423,       0,   10055,    9793,  -32315,   16449,       0,    8918,
  //   562+    10830,   16449,       0,   10575,      84,  -32311,   16412,      19,
  //   563+    10830,    9157,   10565,   16412,      19,  -32056,   10962,      69,
  //   564+    16464,    1354,   10053,   16450,       0,      78,  -32052,    9428,
  //   565+       76,   16444,     182,   10693,      83,   16446,      46,    9416,
  //   566+     8908,   16443,     180,   16407,       0,  -31939,  -32292,  -10454,
  //   567+       51,   16426,      13,   16433,       1,   16409,       0,  -32290,
  //   568+   -10454,      51,   16426,      13,   16410,       0,   16431,      14,
  //   569+   -32323,   16430,      51,   16433,       1
  //   570  !!   %list
  //   571  !!%endoffile
  //   572  !***  end  of generated tables ***
  //   573
  //   574  %routine print ident(%integer p, mode)

  void PRINTIDENT(int P, int MODE) {
    _imp_enter(PRINTIDENT);

    //   575     %INTEGER j, ad

    int J = 0xFEFEFEFE;
    int AD = 0xFEFEFEFE;

    //   576     p = tag(p)_text

    P = TAG[P].TEXT;

    //   577     %IF p = 0 %START

    if ((P) != (0)) goto L_0001;

      //   578        %IF mode = 0 %THEN printsymbol('?') %C

    if ((MODE) != (0)) goto L_0002;
    _imp_PRINTSYMBOL(63);
    goto L_0003;
  L_0002:;
    PUT(63);
  L_0003:;

  //   579+                    %ELSE put('?')
  //   580        %RETURN

    _imp_return;

    //   581     %FINISH

  L_0001:;

  //   582     ad = addr(dict(p+1))

    AD = ((_imp_address)(&DICT[P + 1 - 1]));

    //   583     %IF mode = 0 %THEN printstring(string(ad)) %ELSE %START

    if ((MODE) != (0)) goto L_0004;
    _imp_printf("%S", _imp_strp(*_imp_STRING(AD)));
    goto L_0005;
  L_0004:;

  //   584        putblock(byteinteger(ad),byteinteger(ad+1))

    PUTBLOCK(*_imp_BYTEINTEGER(AD), _imp_BYTEINTEGER(AD + 1));

    //   585     %finish

  L_0005:;

  //   586  %END

    _imp_return;
    _imp_begin_backtrace(PRINTIDENT);
    _imp_diagf("\n\nArguments:\n\n");
    _imp_diagf("P = %d\n", P);
    _imp_diagf("MODE = %d\n", MODE);
    _imp_diagf("\nLocal Variables:\n\n");
    _imp_bt_int(J);
    _imp_bt_int(AD);
    _imp_end_backtrace();
  } /* end of PRINTIDENT */

  // ?J unused
  //   587  %ROUTINE abandon(%INTEGER n)

  void ABANDON(int N) {
    _imp_enter(ABANDON);

    //   588     %SWITCH reason(0:9)

    int REASON_index;
    int REASON_line;
    char *REASON_file;
    static const void *REASON[10] = {&&case_REASON_missing, &&case_REASON_missing, &&case_REASON_missing,
                                     &&case_REASON_missing, &&case_REASON_missing, &&case_REASON_missing,
                                     &&case_REASON_missing, &&case_REASON_missing, &&case_REASON_missing,
                                     &&case_REASON_missing};

    //   589     %INTEGER stream

    int STREAM = 0xFEFEFEFE;

    //   590     stream = listing

    STREAM = 2;

    //   591     %CYCLE

  L_0006:;

  //   592        newline %IF sym # nl

    if ((SYM) == (10)) goto L_0007;
    _imp_NEWLINE();
  L_0007:;

  //   593        printsymbol('*'); write(lines,4);  space

    _imp_PRINTSYMBOL(42);
    _imp_WRITE(LINES, 4);
    _imp_SPACE();

    //   594  printsymbol('[')

    _imp_PRINTSYMBOL(91);

    //   595  write(n,0)

    _imp_WRITE(N, 0);

    //   596  printsymbol(']')

    _imp_PRINTSYMBOL(93);

    //   597        ->reason(n)

    REASON_line = __LINE__;
    REASON_file = __FILE__;
    REASON_index = N;
    goto case_REASON_dispatch;

    //   598  reason(*):debug("* Switch label not set: reason(".itos(n,0).")"); %stop

  case_REASON_default:;
    DEBUG(
        /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "* Switch label not set: reason(", _imp_strp(_imp_ITOS(N, 0)), ")"));  (_imp_string255 *)&tmp;  })
        /* clang-format on */
    );
    _imp_stop(0);

    //   599  reason(0):printstring("compiler error!");          ->more

  case_REASON_0:;
    _imp_printf("%s", "compiler error!");
    goto U_1000;

    //   600  reason(1):printstring("switch vector too large");  ->more

  case_REASON_1:;
    _imp_printf("%s", "switch vector too large");
    goto U_1000;

    //   601  reason(2):printstring("too many names");           ->more

  case_REASON_2:;
    _imp_printf("%s", "too many names");
    goto U_1000;

    //   602  reason(3):printstring("program too complex");      ->more

  case_REASON_3:;
    _imp_printf("%s", "program too complex");
    goto U_1000;

    //   603  reason(4):printstring("feature not implemented");  ->more

  case_REASON_4:;
    _imp_printf("%s", "feature not implemented");
    goto U_1000;

    //   604  {GT: reason(5):printstring(error message.sysmess(event_extra)) %and -> more %if event_sub # 1
    //   605
    //   606  reason(5):

  case_REASON_5:;

  //   607            %if event_sub # 1 %start

    if ((_imp_EVENT().SUB) == (1)) goto L_0009;

      //   608              printstring("error message=""".error message.""" event_event=".itos(event_event,0)."  event_sub=".itos(event_sub, 0))

    _imp_printf("%s%S%s%S%s%S", "error message=\"", _imp_strp(ERRORMESSAGE),
                "\" event_event=", _imp_strp(_imp_ITOS(_imp_EVENT().EVENT, 0)),
                "  event_sub=", _imp_strp(_imp_ITOS(_imp_EVENT().SUB, 0)));

    //   609              {printstring("sysmess(event_extra)=""".sysmess(event_extra)."""")
    //   610              -> more

    goto U_1000;

    //   611            %finish

  L_0009:;

  //   612
  //   613            %IF quote # 0 %START

    if ((QUOTE) == (0)) goto L_000A;

      //   614              %IF quote < 0 %THEN printsymbol(cquote) %C

    if ((QUOTE) >= (0)) goto L_000B;
    _imp_PRINTSYMBOL(39);
    goto L_000C;
  L_000B:;
    _imp_PRINTSYMBOL(34);
  L_000C:;

  //   615+                           %ELSE printsymbol(squote)
  //   616            %ELSE

    goto L_000D;
  L_000A:;

  //   617               printstring("%endof")

    _imp_printf("%s", "%endof");

    //   618               %IF progmode >= 0 %THEN printstring("program") %C

    if ((PROGMODE) < (0)) goto L_000E;
    _imp_printf("%s", "program");
    goto L_000F;
  L_000E:;
    _imp_printf("%s", "file");
  L_000F:;

  //   619+                                %ELSE printstring("file")
  //   620            %FINISH

  L_000D:;

  //   621            printstring(" missing?");              ->more

    _imp_printf("%s", " missing?");
    goto U_1000;

    //   622  reason(6):printstring("too many faults!");   ->more

  case_REASON_6:;
    _imp_printf("%s", "too many faults!");
    goto U_1000;

    //   623  reason(7):printstring("string constant too long"); ->more

  case_REASON_7:;
    _imp_printf("%s", "string constant too long");
    goto U_1000;

    //   624  reason(8):printstring("dictionary full"); -> more

  case_REASON_8:;
    _imp_printf("%s", "dictionary full");
    goto U_1000;

    //   625  reason(9): printstring("Included file ".include file." does not exist")

  case_REASON_9:;
    _imp_printf("%s%S%s", "Included file ", _imp_strp(INCLUDEFILE), " does not exist");

    //   626  more: newline

  U_1000:;
    _imp_NEWLINE();

    //   627        printstring("***  compilation abandoned ***");  newline

    _imp_printf("%s", "***  compilation abandoned ***");
    _imp_NEWLINE();

    //   628        %EXIT %IF stream = report

    if ((STREAM) != (0)) goto L_0010;
    goto L_0011;
  L_0010:;

  //   629        close output

    _imp_CLOSEOUTPUT();

    //   630        stream = report

    STREAM = 0;

    //   631        select output(report)

    _imp_SELECTOUTPUT(0);

    //   632     %REPEAT

    goto L_0006;
  L_0011:;

  //   633     %monitor %IF diag&4096 # 0

    if ((DIAG & 4096) == (0)) goto L_0012;
    _imp_monitor_loc(__LINE__, __FILE__, __PRETTY_FUNCTION__);
  L_0012:;

  //   634     exit(16_1000002c)    {1000002c is SS$_ABORT with the inhibit message bit set - could just use EXIT_FAILURE}

    EXIT(268435500);

    //   635  %END

    _imp_return;

  case_REASON_dispatch:
    if (REASON_index < 0 || REASON_index > 9)
      _imp_signalf(6, 3, REASON_index, "->REASON(%d) out of bounds at %s line %d", REASON_index, REASON_file,
                   REASON_line);
    goto *REASON[REASON_index - 0];

  case_REASON_missing:
    _imp_signalf(8, 2, REASON_index, "switch jump to undefined label REASON(%d): at %s line %d", REASON_index,
                 REASON_file, REASON_line);
    _imp_begin_backtrace(ABANDON);
    _imp_diagf("\n\nArguments:\n\n");
    _imp_diagf("N = %d\n", N);
    _imp_diagf("\nLocal Variables:\n\n");
    _imp_bt_int(STREAM);
    _imp_end_backtrace();
  } /* end of ABANDON */

  //   636
  //   637  %routine op(%integer code, param)

  void OP(int CODE, int PARAM) {
    _imp_enter(OP);

    //   638     put(code);  putword(param)

    PUT(CODE);
    PUTWORD(PARAM);

    //   639  %end

    _imp_return;
    _imp_begin_backtrace(OP);
    _imp_diagf("\n\nArguments:\n\n");
    _imp_diagf("CODE = %d\n", CODE);
    _imp_diagf("PARAM = %d\n", PARAM);
    _imp_diagf("\nLocal Variables:\n\n");
    _imp_end_backtrace();
  } /* end of OP */

  //   640  %routine set const(%integer m)

  void SETCONST(int M) {
    _imp_enter(SETCONST);

    //   641     %integer v

    int V = 0xFEFEFEFE;

    //   642     v = m;  v = -m %if v < 0

    V = M;
    if ((V) >= (0)) goto L_0013;
    V = -M;
  L_0013:;

  //   643     put('N');  putlong(v)

    PUT(78);
    PUTLONG(V);

    //   644     put('U') %if m < 0

    if ((M) >= (0)) goto L_0014;
    PUT(85);
  L_0014:;

  //   645  %end

    _imp_return;
    _imp_begin_backtrace(SETCONST);
    _imp_diagf("\n\nArguments:\n\n");
    _imp_diagf("M = %d\n", M);
    _imp_diagf("\nLocal Variables:\n\n");
    _imp_bt_int(V);
    _imp_end_backtrace();
  } /* end of SETCONST */

  //   646
  //   647
  //   648  %ROUTINE compile block(%INTEGER level, block tag, dmin, tmax, id)

  void COMPILEBLOCK(int LEVEL, int BLOCKTAG, int DMIN, int TMAX, int ID) {
    _imp_enter(COMPILEBLOCK);

    auto int GAPP(void);

    auto void DELETENAMES(int QUIET);

    auto void ANALYSE(void);

    auto void COMPILE(void);

    //   649
    //   650     %INTEGERFNSPEC gapp
    //   651     %ROUTINESPEC delete names(%INTEGER quiet)
    //   652     %ROUTINESPEC analyse
    //   653     %ROUTINESPEC compile
    //   654
    //   655     %INTEGER open; open       = closed;      !zero if can return from proc

    int OPEN = 0xFEFEFEFE;
    OPEN = 16384;

    //   656     %INTEGER dbase; dbase      = dmax;        !dictionary base

    int DBASE = 0xFEFEFEFE;
    DBASE = DMAX;

    //   657     %INTEGER tbase; tbase      = tmax;        !tag base

    int TBASE = 0xFEFEFEFE;
    TBASE = TMAX;

    //   658     %INTEGER tstart; tstart    = tmax

    int TSTART = 0xFEFEFEFE;
    TSTART = TMAX;

    //   659     %INTEGER label; label      = 4;           !first internal label

    int LABEL = 0xFEFEFEFE;
    LABEL = 4;

    //   660     %INTEGER last array; last array = 0

    int LASTARRAY = 0xFEFEFEFE;
    LASTARRAY = 0;

    //   661     %INTEGER access; access     = 1;           !non-zero if accessible

    int ACCESS = 0xFEFEFEFE;
    ACCESS = 1;

    //   662     %INTEGER inhibit; inhibit    = 0;           !non-zero inhibits declaratons

    int INHIBIT = 0xFEFEFEFE;
    INHIBIT = 0;

    //   663
    //   664     {GT:%SHORT}%INTEGERNAME bflags; bflags      == tag(block tag)_flags

    int *BFLAGS = (void *)0xFEFEFEFEFEFEFEFELL;
    BFLAGS = (int *)&TAG[BLOCKTAG].FLAGS;
    //   665     %INTEGER block type;          block type   = bflags>>4&7

    int BLOCKTYPE = 0xFEFEFEFE;
    BLOCKTYPE = (unsigned int)*BFLAGS >> 4 & 7;

    //   666     %INTEGER block form;          block form   = bflags&15

    int BLOCKFORM = 0xFEFEFEFE;
    BLOCKFORM = *BFLAGS & 15;

    //   667     %INTEGER block fm;          block fm     = tag(block tag)_format

    int BLOCKFM = 0xFEFEFEFE;
    BLOCKFM = TAG[BLOCKTAG].FORMAT;

    //   668     %INTEGER block otype;          block otype  = otype

    int BLOCKOTYPE = 0xFEFEFEFE;
    BLOCKOTYPE = OTYPE;

    //   669     %INTEGERNAME block app;      block app   == tag(block tag)_app

    int *BLOCKAPP = (void *)0xFEFEFEFEFEFEFEFELL;
    BLOCKAPP = (int *)&TAG[BLOCKTAG].APP;
    //   670
    //   671     %INTEGER l, new app

    int L = 0xFEFEFEFE;
    int NEWAPP = 0xFEFEFEFE;

    //   672
    //   673  %ROUTINE fault(%INTEGER n)

    void FAULT(int N) {
      _imp_enter(FAULT);

      //   674
      //   675      ! -5 : -1  - warnings
      //   676      !  1 : 22  - errors
      //   677
      //   678      %SWITCH fm(-5:22)

      int FM_index;
      int FM_line;
      char *FM_file;
      static const void *FM[28] = {&&case_FM_missing, &&case_FM_missing, &&case_FM_missing, &&case_FM_missing,
                                   &&case_FM_missing, &&case_FM_missing, &&case_FM_missing, &&case_FM_missing,
                                   &&case_FM_missing, &&case_FM_missing, &&case_FM_missing, &&case_FM_missing,
                                   &&case_FM_missing, &&case_FM_missing, &&case_FM_missing, &&case_FM_missing,
                                   &&case_FM_missing, &&case_FM_missing, &&case_FM_missing, &&case_FM_missing,
                                   &&case_FM_missing, &&case_FM_missing, &&case_FM_missing, &&case_FM_missing,
                                   &&case_FM_missing, &&case_FM_missing, &&case_FM_missing, &&case_FM_missing};

      //   679      %INTEGER st

      int ST = 0xFEFEFEFE;

      //   680
      //   681      %ROUTINE print ss

      void PRINTSS(void) {
        _imp_enter(PRINTSS);

        //   682         %INTEGER s, p

        int S = 0xFEFEFEFE;
        int P = 0xFEFEFEFE;

        //   683         %RETURN %IF pos = 0

        if ((POS) != (0)) goto L_0015;
        _imp_return;
      L_0015:;

      //   684         space

        _imp_SPACE();

        //   685         p = 1

        P = 1;

        //   686         %CYCLE

      L_0016:;

      //   687            printsymbol(marker) %IF p = pos1

        if ((P) != (POS1)) goto L_0017;
        _imp_PRINTSYMBOL(94);
      L_0017:;

      //   688            %EXIT %IF p = pos

        if ((P) != (POS)) goto L_0018;
        goto L_0019;
      L_0018:;

      //   689            s = char(margin+p);  p = p+1

        S = CHAR[MARGIN + P];
        P = P + 1;

        //   690            %EXIT %IF s = nl %OR (s='%' %AND p = pos)

        if ((S) == (10)) goto L_001A;
        if ((S) != (37)) goto L_001B;
        if ((P) != (POS)) goto L_001B;
      L_001A:;
        goto L_0019;
      L_001B:;

      //   691            %IF s < ' ' %START;         !beware of tabs

        if ((S) >= (32)) goto L_001C;

          //   692               %IF s = ff %THEN s = nl %ELSE s = ' '

        if ((S) != (12)) goto L_001D;
        S = 10;
        goto L_001E;
      L_001D:;
        S = 32;
      L_001E:;

      //   693            %FINISH

      L_001C:;

      //   694            printsymbol(s)

        _imp_PRINTSYMBOL(S);

        //   695         %REPEAT

        goto L_0016;
      L_0019:;

      //   696         pos = 0 %IF list <= 0

        if ((LIST) > (0)) goto L_001F;
        POS = 0;
      L_001F:;

      //   697      %END

        _imp_return;
        _imp_begin_backtrace(PRINTSS);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_bt_int(S);
        _imp_bt_int(P);
        _imp_end_backtrace();
      } /* end of PRINTSS */

      //   698
      //   699      pos1 = pos2 %IF pos2 > pos1

      if ((POS2) <= (POS1)) goto L_0020;
      POS1 = POS2;
    L_0020:;

    //   700     %if n >=0 %or command&warnbit # 0 %start

      if ((N) >= (0)) goto L_0021;
      if ((COMMAND & 128) == (0)) goto L_0022;
    L_0021:;

    //   701      newline %IF sym # nl

      if ((SYM) == (10)) goto L_0023;
      _imp_NEWLINE();
    L_0023:;

    //   702      st = report

      ST = 0;

      //   703      st = listing %IF n = -3;              !don't report unused on the console

      if ((N) != (-3)) goto L_0024;
      ST = 2;
    L_0024:;

    //   704      %cycle

    L_0025:;

    //   705         SELECT OUTPUT(st)

      _imp_SELECTOUTPUT(ST);

      //   706         %if n < 0 %then printsymbol('?') %and pos1 = 0 %else printsymbol('*')

      if ((N) >= (0)) goto L_0026;
      _imp_PRINTSYMBOL(63);
      POS1 = 0;
      goto L_0027;
    L_0026:;
      _imp_PRINTSYMBOL(42);
    L_0027:;

    //   707         %if st # report %start

      if ((ST) == (0)) goto L_0028;

        //   708            %if list <= 0 %and pos1 # 0 %start

      if ((LIST) > (0)) goto L_0029;
      if ((POS1) == (0)) goto L_0029;

        //   709               spaces(pos1+margin);  PRINTSTRING("      ! ")

      _imp_SPACES(POS1 + MARGIN);
      _imp_printf("%s", "      ! ");

      //   710            %finish

    L_0029:;

    //   711         %finish %else %start

      goto L_002A;
    L_0028:;

    //   712            PRINTSTRING(include file) %if include # 0

      if ((INCLUDE) == (0)) goto L_002B;
      _imp_printf("%S", _imp_strp(INCLUDEFILE));
    L_002B:;

    //   713            write(lines, 4);  printsymbol(csym);  space

      _imp_WRITE(LINES, 4);
      _imp_PRINTSYMBOL(CSYM);
      _imp_SPACE();

      //   714         %finish

    L_002A:;

    //   715         ->fm(n) %if -5 <= n <= 22

      {
        int tmp;
        if ((-5) > (tmp = N)) goto L_002C;
        // Double-sided test on N (Part II)
        if (tmp > (22)) goto L_002C;
      }
      FM_line = __LINE__;
      FM_file = __FILE__;
      FM_index = N;
      goto case_FM_dispatch;
    L_002C:;

    //   716         PRINTSTRING("fault");  write(n, 2);              ->ps

      _imp_printf("%s", "fault");
      _imp_WRITE(N, 2);
      goto U_1001;

      //   717  fm(*):debug("* Switch label not set: fm(".itos(n,0).")"); %stop

    case_FM_default:;
      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "* Switch label not set: fm(", _imp_strp(_imp_ITOS(N, 0)), ")"));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );
      _imp_stop(0);

      //   718  fm(-5):PRINTSTRING("Dubious statement");  dubious = 0;  ->psd

    case_FM_M5:;
      _imp_printf("%s", "Dubious statement");
      DUBIOUS = 0;
      goto U_1002;

      //   719  fm(-4):PRINTSTRING("Non-local")

    case_FM_M4:;
      _imp_printf("%s", "Non-local");

      //   720         pos1 = for warn;  for warn = 0;      ->ps

      POS1 = FORWARN;
      FORWARN = 0;
      goto U_1001;

      //   721  fm(-3):print ident(x, 0);  PRINTSTRING(" unused");      ->nps

    case_FM_M3:;
      PRINTIDENT(X, 0);
      _imp_printf("%s", " unused");
      goto U_1003;

      //   722  fm(-2):PRINTSTRING("""}""");                            ->miss

    case_FM_M2:;
      _imp_printf("%s", "\"}\"");
      goto U_1004;

      //   723  fm(-1):PRINTSTRING("access");                           ->psd

    case_FM_M1:;
      _imp_printf("%s", "access");
      goto U_1002;

      //   724
      //   725  fm(0): PRINTSTRING("form");                             ->ps

    case_FM_0:;
      _imp_printf("%s", "form");
      goto U_1001;

      //   726  fm(1): PRINTSTRING("atom");                             ->ps

    case_FM_1:;
      _imp_printf("%s", "atom");
      goto U_1001;

      //   727  fm(2): PRINTSTRING("not declared");                     ->ps

    case_FM_2:;
      _imp_printf("%s", "not declared");
      goto U_1001;

      //   728  fm(3): PRINTSTRING("too complex");                      ->ps

    case_FM_3:;
      _imp_printf("%s", "too complex");
      goto U_1001;

      //   729  fm(4): PRINTSTRING("duplicate");                        ->ps

    case_FM_4:;
      _imp_printf("%s", "duplicate");
      goto U_1001;

      //   730  fm(5): PRINTSTRING("type");                             ->ps

    case_FM_5:;
      _imp_printf("%s", "type");
      goto U_1001;

      //   731  fm(6): PRINTSTRING("match");                            ->psd

    case_FM_6:;
      _imp_printf("%s", "match");
      goto U_1002;

      //   732  fm(7): PRINTSTRING("context");                          ->psd

    case_FM_7:;
      _imp_printf("%s", "context");
      goto U_1002;

      //   733  fm(21):PRINTSTRING("context ");  print ident(this, 0);  ->ps

    case_FM_21:;
      _imp_printf("%s", "context ");
      PRINTIDENT(THIS, 0);
      goto U_1001;

      //   734  fm(8): PRINTSTRING("%cycle");                           ->miss

    case_FM_8:;
      _imp_printf("%s", "%cycle");
      goto U_1004;

      //   735  fm(9): PRINTSTRING("%start");                           ->miss

    case_FM_9:;
      _imp_printf("%s", "%start");
      goto U_1004;

      //   736  fm(10):PRINTSTRING("size");  WRITE(lit, 1) %if pos1 = 0;->ps

    case_FM_10:;
      _imp_printf("%s", "size");
      if ((POS1) != (0)) goto L_002E;
      _imp_WRITE(LIT, 1);
    L_002E:;
      goto U_1001;

      //   737  fm(11):PRINTSTRING("bounds")

    case_FM_11:;
      _imp_printf("%s", "bounds");

      //   738         WRITE(ocount, 1) %unless ocount < 0;             ->ps

      if ((OCOUNT) < (0)) goto L_002F;
      _imp_WRITE(OCOUNT, 1);
    L_002F:;
      goto U_1001;

      //   739  fm(12):PRINTSTRING("index");                            ->ps

    case_FM_12:;
      _imp_printf("%s", "index");
      goto U_1001;

      //   740  fm(13):PRINTSTRING("order");                            ->psd

    case_FM_13:;
      _imp_printf("%s", "order");
      goto U_1002;

      //   741  fm(14):PRINTSTRING("not a location");                   ->ps

    case_FM_14:;
      _imp_printf("%s", "not a location");
      goto U_1001;

      //   742  fm(15):PRINTSTRING("%begin");                           ->miss

    case_FM_15:;
      _imp_printf("%s", "%begin");
      goto U_1004;

      //   743  fm(16):PRINTSTRING("%end");                             ->miss

    case_FM_16:;
      _imp_printf("%s", "%end");
      goto U_1004;

      //   744  fm(17):PRINTSTRING("%repeat");                          ->miss

    case_FM_17:;
      _imp_printf("%s", "%repeat");
      goto U_1004;

      //   745  fm(18):PRINTSTRING("%finish");                          ->miss

    case_FM_18:;
      _imp_printf("%s", "%finish");
      goto U_1004;

      //   746  fm(19):PRINTSTRING("result");                           ->miss

    case_FM_19:;
      _imp_printf("%s", "result");
      goto U_1004;

      //   747  fm(22):PRINTSTRING("format");                           ->ps

    case_FM_22:;
      _imp_printf("%s", "format");
      goto U_1001;

      //   748  fm(20):printsymbol('"');  print ident(x, 0);  printsymbol('"')

    case_FM_20:;
      _imp_PRINTSYMBOL(34);
      PRINTIDENT(X, 0);
      _imp_PRINTSYMBOL(34);

      //   749  miss:  PRINTSTRING(" missing");                         ->nps

    U_1004:;
      _imp_printf("%s", " missing");
      goto U_1003;

      //   750  psd:   pos1 = 0

    U_1002:;
      POS1 = 0;

      //   751  ps:    print ss

    U_1001:;
      PRINTSS();

      //   752  nps:   NEWLINE

    U_1003:;
      _imp_NEWLINE();

      //   753         %exit %if st = listing

      if ((ST) != (2)) goto L_0030;
      goto L_0031;
    L_0030:;

    //   754         st = listing

      ST = 2;

      //   755      %repeat

      goto L_0025;
    L_0031:;

    //   756     %finish

    L_0022:;

    //   757      %if n >= 0 %start

      if ((N) < (0)) goto L_0032;

        //   758         %monitor %if diag&4096 # 0

      if ((DIAG & 4096) == (0)) goto L_0033;
      _imp_monitor_loc(__LINE__, __FILE__, __PRETTY_FUNCTION__);
    L_0033:;

    //   759         %if n # 13 %start;           !order is fairly safe

      if ((N) == (13)) goto L_0034;

        //   760            ocount = -1

      OCOUNT = -1;

      //   761            gg = 0

      GG = 0;

      //   762            copy = 0;  quote = 0

      COPY = 0;
      QUOTE = 0;

      //   763            search base = 0;  escape class = 0

      SEARCHBASE = 0;
      ESCAPECLASS = 0;

      //   764            gg = 0

      GG = 0;

      //   765         %finish

    L_0034:;

    //   766         faulty = faulty+1

      FAULTY = FAULTY + 1;

      //   767
      //   768         !check that there haven't been too many faults
      //   769
      //   770         fault rate = fault rate+3;  abandon(6) %IF fault rate > 30

      FAULTRATE = FAULTRATE + 3;
      if ((FAULTRATE) <= (30)) goto L_0035;
      ABANDON(6);
    L_0035:;

    //   771         fault rate = 3 %IF fault rate <= 0

      if ((FAULTRATE) > (0)) goto L_0036;
      FAULTRATE = 3;
    L_0036:;

    //   772      %FINISH

    L_0032:;

    //   773      tbase = tstart

      TBASE = TSTART;

      //   774      %IF list <= 0 %AND sym # nl %START

      if ((LIST) > (0)) goto L_0037;
      if ((SYM) == (10)) goto L_0037;

        //   775         error margin = column

      ERRORMARGIN = COLUMN;

      //   776         error sym = sym;  sym = nl

      ERRORSYM = SYM;
      SYM = 10;

      //   777      %FINISH

    L_0037:;

    //   778  %END

      _imp_return;

    case_FM_dispatch:
      if (FM_index < -5 || FM_index > 22)
        _imp_signalf(6, 3, FM_index, "->FM(%d) out of bounds at %s line %d", FM_index, FM_file, FM_line);
      goto *FM[FM_index - -5];

    case_FM_missing:
      _imp_signalf(8, 2, FM_index, "switch jump to undefined label FM(%d): at %s line %d", FM_index, FM_file, FM_line);
      _imp_begin_backtrace(FAULT);
      _imp_diagf("\n\nArguments:\n\n");
      _imp_diagf("N = %d\n", N);
      _imp_diagf("\nLocal Variables:\n\n");
      _imp_bt_int(ST);
      _imp_end_backtrace();
    } /* end of FAULT */

    //   779
    //   780     dmin = dmin-1;  dict(dmin) = -1;            !end marker for starts & cycles

    DMIN = DMIN - 1;
    DICT[DMIN - 1] = -1;

    //   781     abandon(2) %IF dmax = dmin

    if ((DMAX) != (DMIN)) goto L_0038;
    ABANDON(2);
  L_0038:;

  //   782
  //   783     %IF list > 0 %AND level > 0 %START

    if ((LIST) <= (0)) goto L_0039;
    if ((LEVEL) <= (0)) goto L_0039;

      //   784        write(lines, 5);  spaces(level*3-1)

    _imp_WRITE(LINES, 5);
    _imp_SPACES(LEVEL * 3 - 1);

    //   785        %IF block tag = 0 %START

    if ((BLOCKTAG) != (0)) goto L_003A;

      //   786           printstring("Begin")

    _imp_printf("%s", "Begin");

    //   787        %FINISH %ELSE %START

    goto L_003B;
  L_003A:;

  //   788           printstring("Procedure ");  print ident(block tag, 0)

    _imp_printf("%s", "Procedure ");
    PRINTIDENT(BLOCKTAG, 0);

    //   789        %FINISH

  L_003B:;

  //   790        newline

    _imp_NEWLINE();

    //   791     %FINISH

  L_0039:;

  //   792
  //   793     !deal with procedure definition (parameters)
  //   794
  //   795     %IF block tag # 0 %START;                   !proc

    if ((BLOCKTAG) == (0)) goto L_003C;

      //   796        analyse;  compile %IF ss # 0

    ANALYSE();
    if ((SS) == (0)) goto L_003D;
    COMPILE();
  L_003D:;

  //   797
  //   798        %IF block otype # 0 %START;              !external-ish

    if ((BLOCKOTYPE) == (0)) goto L_003E;

      //   799           %IF bflags&spec = 0 %START;           !definition

    if ((*BFLAGS & 128) != (0)) goto L_003F;

      //   800              %IF progmode <= 0 %AND level = 1 %THEN progmode = -1 %C

    if ((PROGMODE) > (0)) goto L_0040;
    if ((LEVEL) != (1)) goto L_0040;
    PROGMODE = -1;
    goto L_0041;
  L_0040:;
    FAULT(7);
  L_0041:;

  //   801+                                              %ELSE fault(7)
  //   802  !!!!!    %FINISH %ELSE %START;                                !external spec
  //   803  !!!!!       bflags = bflags-spec;              !definition elsewhere
  //   804           %FINISH

  L_003F:;

  //   805        %FINISH

  L_003E:;

  //   806
  //   807        new app = gapp;                          !generate app grammar

    NEWAPP = GAPP();

    //   808        %IF spec given # 0 %START;               !definition after spec

    if ((SPECGIVEN) == (0)) goto L_0042;

      //   809           fault(6) %IF new app # block app;     !different from spec

    if ((NEWAPP) == (*BLOCKAPP)) goto L_0043;
    FAULT(6);
  L_0043:;

  //   810        %FINISH

  L_0042:;

  //   811        block app = new app;                     !use the latest

    *BLOCKAPP = NEWAPP;

    //   812
    //   813        %IF level < 0 %START;                    !not procedure definition

    if ((LEVEL) >= (0)) goto L_0044;

      //   814           delete names(0)

    DELETENAMES(0);

    //   815           %RETURN

    _imp_return;

    //   816        %FINISH

  L_0044:;

  //   817     %FINISH %ELSE %START

    goto L_0045;
  L_003C:;

  //   818        open = 0;                                !can return from a block?

    OPEN = 0;

    //   819     %FINISH

  L_0045:;

  //   820
  //   821     %CYCLE

  L_0046:;

  //   822        analyse

    ANALYSE();

    //   823        %CONTINUE %IF ss = 0

    if ((SS) != (0)) goto L_0047;
    goto L_0048;
  L_0047:;

  //   824        compile

    COMPILE();

    //   825        fault(-5) %IF dubious # 0

    if ((DUBIOUS) == (0)) goto L_0049;
    FAULT(-5);
  L_0049:;

  //   826        %IF sstype > 0 %START;                   !block in or out

    if ((SSTYPE) <= (0)) goto L_004A;

      //   827           %EXIT %IF sstype = 2;               !out

    if ((SSTYPE) != (2)) goto L_004B;
    goto L_004C;
  L_004B:;

  //   828           compile block(spec mode, block x, dmin, tmax, id)

    COMPILEBLOCK(SPECMODE, BLOCKX, DMIN, TMAX, ID);

    //   829           %EXIT %IF ss < 0;                   !endofprogram

    if ((SS) >= (0)) goto L_004D;
    goto L_004C;
  L_004D:;

  //   830        %FINISH

  L_004A:;

  //   831     %REPEAT

  L_0048:;
    goto L_0046;
  L_004C:;

  //   832     %IF list > 1 %AND level > 0 %START

    if ((LIST) <= (1)) goto L_004E;
    if ((LEVEL) <= (0)) goto L_004E;

      //   833        write(lines, 5);  spaces(level*3-1)

    _imp_WRITE(LINES, 5);
    _imp_SPACES(LEVEL * 3 - 1);

    //   834        printstring("End")

    _imp_printf("%s", "End");

    //   835        newline

    _imp_NEWLINE();

    //   836     %FINISH

  L_004E:;

  //   837     delete names(0)

    DELETENAMES(0);

    //   838     %RETURN

    _imp_return;

    //   839
    //   840     %INTEGERFN gapp;                            !generate app grammar (backwards)

    int GAPP(void) {
      _imp_enter(GAPP);

      auto void SETCELL(int G, int TT);

      auto void CLASS(struct TAGFM * V);

      //   841        %CONSTINTEGER comma = 140;               !psep
      //   842        %ROUTINESPEC set cell(%INTEGER g, tt)
      //   843        %ROUTINESPEC class(%RECORD(tagfm)%NAME v);   !imp77:
      //   844        %RECORD(tagfm)%NAME v;                       !imp77:

      struct TAGFM *V = (void *)0xFEFEFEFEFEFEFEFELL;

      //   845        %INTEGER p, link, tp, c, ap, t

      int P = 0xFEFEFEFE;
      int LINK = 0xFEFEFEFE;
      int TP = 0xFEFEFEFE;
      int C = 0xFEFEFEFE;
      int AP = 0xFEFEFEFE;
      int T = 0xFEFEFEFE;

      //   846
      //   847        %RESULT = 0 %IF tmax = local;            !no app needed

      if ((TMAX) != (LOCAL)) goto L_004F;
      _imp_result(0);
    L_004F:;

    //   848
    //   849        p = gmax1;  link = 0;  t = tmax

      P = 718;
      LINK = 0;
      T = TMAX;

      //   850
      //   851        %CYCLE

    L_0050:;

    //   852           v == tag(t);  t = t-1

      V = (struct TAGFM *)&TAG[T];
      T = T - 1;

      //   853           class(v);                             !deduce class from tag

      CLASS(V);

      //   854           %IF c < 0 %START;                     !insert %PARAM

      if ((C) >= (0)) goto L_0051;

        //   855              c = -c

      C = -C;

      //   856              set cell(196, tp)

      SETCELL(196, TP);

      //   857              tp = -1

      TP = -1;

      //   858           %FINISH

    L_0051:;

    //   859           set cell(c, tp)

      SETCELL(C, TP);

      //   860           %EXIT %IF t = local;                  !end of parameters

      if ((T) != (LOCAL)) goto L_0052;
      goto L_0053;
    L_0052:;

    //   861           set cell(comma, -1);                  !add the separating comma

      SETCELL(140, -1);

      //   862        %REPEAT

      goto L_0050;
    L_0053:;

    //   863        abandon(3) %IF gmax > gmin

      if ((GMAX) <= (GMIN)) goto L_0054;
      ABANDON(3);
    L_0054:;

    //   864
    //   865        %RESULT = link

      _imp_result(LINK);

      //   866
      //   867        %ROUTINE set cell(%INTEGER g, tt)

      void SETCELL(int G, int TT) {
        _imp_enter(SETCELL);

        //   868
        //   869           !add the cell to the grammar, combining common tails
        //   870
        //   871           %WHILE p # gmax %CYCLE

      L_0055:;
        if ((P) == (GMAX)) goto L_0056;

          //   872              p = p+1

        P = P + 1;

        //   873              %IF glink(p) = link %AND gram(p) = g %START

        if ((GLINK[P]) != (LINK)) goto L_0057;
        if ((GRAM[P]) != (G)) goto L_0057;

          //   874                 %IF tt < 0 %OR (gram(p+1) = tt %AND glink(p+1)=ap) %START

        if ((TT) < (0)) goto L_0058;
        if ((GRAM[P + 1]) != (TT)) goto L_0059;
        if ((GLINK[P + 1]) != (AP)) goto L_0059;
      L_0058:;

      //   875                    link = p;                    !already there

        LINK = P;

        //   876                    %RETURN

        _imp_return;

        //   877                 %FINISH

      L_0059:;

      //   878              %FINISH

      L_0057:;

      //   879           %REPEAT

        goto L_0055;
      L_0056:;

      //   880
      //   881           !add a new cell
      //   882
      //   883           gmax = gmax+1

        GMAX = GMAX + 1;

        //   884           gram(gmax) = g

        GRAM[GMAX] = G;

        //   885           glink(gmax) = link

        GLINK[GMAX] = LINK;

        //   886           link = gmax

        LINK = GMAX;

        //   887
        //   888           %IF tt >= 0 %START;             ! set type cell

        if ((TT) < (0)) goto L_005A;

          //   889              gmax = gmax+1

        GMAX = GMAX + 1;

        //   890              gram(gmax) = tt

        GRAM[GMAX] = TT;

        //   891              glink(gmax) = ap

        GLINK[GMAX] = AP;

        //   892           %FINISH

      L_005A:;

      //   893
      //   894           p = gmax

        P = GMAX;

        //   895        %END

        _imp_return;
        _imp_begin_backtrace(SETCELL);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("G = %d\n", G);
        _imp_diagf("TT = %d\n", TT);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of SETCELL */

      //   896
      //   897        %ROUTINE class(%RECORD(tagfm)%NAME v);  !imp77:

      void CLASS(struct TAGFM * V) {
        _imp_enter(CLASS);

        //   898           %CONSTINTEGER err    = 89
        //   899           %CONSTINTEGER rtp    = 100
        //   900           %CONSTINTEGER fnp    = 101
        //   901           %CONSTINTEGER mapp   = 102
        //   902           %CONSTINTEGER predp  = 103
        //   903           %CONSTINTEGERARRAY class map(0:15) = %C

        const int CLASSMAP[16] = {89, 1764, 247, [3 ... 6] = 89, -100, -101, -102, -103, 89, 214, 89, 229, 89};
        _imp_create_constdv(const, int, CLASSMAP, 0, 15);

        //   904+          err,1764, 247, err(4), -rtp, -fnp, -mapp, -predp, err, 214,
        //   905+          err, 229, err
        //   906           %INTEGER tags, type, form

        int TAGS = 0xFEFEFEFE;
        int TYPE = 0xFEFEFEFE;
        int FORM = 0xFEFEFEFE;

        //   907           ap = 0

        AP = 0;

        //   908           tags = v_flags

        TAGS = V->FLAGS;

        //   909           type = tags>>4&7;  form = tags&15

        TYPE = (unsigned int)TAGS >> 4 & 7;
        FORM = TAGS & 15;

        //   910           tp = v_format<<3!type

        TP = ((int)V->FORMAT) << (((int)3) & 31) | TYPE;

        //   911           c = class map(form)

        C = CLASSMAP[FORM];

        //   912           c = 208 %AND tp = 0 %IF type = 0 %AND form = 2;  !%NAME

        if ((TYPE) != (0)) goto L_005B;
        if ((FORM) != (2)) goto L_005B;
        C = 208;
        TP = 0;
      L_005B:;

      //   913           ap = v_app %IF tags&parameters # 0

        if ((TAGS & 4096) == (0)) goto L_005C;
        AP = V->APP;
      L_005C:;

      //   914        %END

        _imp_return;
        _imp_begin_backtrace(CLASS);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_bt_int(TAGS);
        _imp_bt_int(TYPE);
        _imp_bt_int(FORM);
        _imp_end_backtrace();
      } /* end of CLASS */

      //   915     %END

      _imp_signal(8, 4, 0, "result missing");
      _imp_begin_backtrace(GAPP);
      _imp_diagf("\nLocal Variables:\n\n");
      _imp_diagf("V @[%p] = <RECORD>\n", V);
      _imp_bt_int(P);
      _imp_bt_int(LINK);
      _imp_bt_int(TP);
      _imp_bt_int(C);
      _imp_bt_int(AP);
      _imp_bt_int(T);
      _imp_end_backtrace();
    } /* end of GAPP */

    //   916
    //   917  %ROUTINE delete names(%INTEGER quiet)

    void DELETENAMES(int QUIET) {
      _imp_enter(DELETENAMES);

      //   918     %INTEGER flags

      int FLAGS = 0xFEFEFEFE;

      //   919     %RECORD(tagfm)%NAME tx;      !imp77:

      struct TAGFM *TX = (void *)0xFEFEFEFEFEFEFEFELL;

      //   920     %WHILE tmax > tbase %CYCLE

    L_005D:;
      if ((TMAX) <= (TBASE)) goto L_005E;

        //   921        x = tmax;  tmax = tmax-1

      X = TMAX;
      TMAX = TMAX - 1;

      //   922        tx == tag(x)

      TX = (struct TAGFM *)&TAG[X];
      //   923        flags = tx_flags

      FLAGS = TX->FLAGS;

      //   924        fault(20) %IF flags&spec # 0 %and flags&own bit = 0

      if ((FLAGS & 128) == (0)) goto L_005F;
      if ((FLAGS & 512) != (0)) goto L_005F;
      FAULT(20);
    L_005F:;

    //   925                 {spec with no definition & not external}
    //   926        %IF flags&used bit = 0 %AND level > 0 %AND list <= 0 %START

      if ((FLAGS & 32768) != (0)) goto L_0060;
      if ((LEVEL) <= (0)) goto L_0060;
      if ((LIST) > (0)) goto L_0060;

        //   927           fault(-3) %IF quiet = 0;          !unused

      if ((QUIET) != (0)) goto L_0061;
      FAULT(-3);
    L_0061:;

    //   928        %FINISH

    L_0060:;

    //   929        dict(tx_text) = tx_link

      DICT[TX->TEXT - 1] = TX->LINK;

      //   930     %REPEAT

      goto L_005D;
    L_005E:;

    //   931  %END

      _imp_return;
      _imp_begin_backtrace(DELETENAMES);
      _imp_diagf("\n\nArguments:\n\n");
      _imp_diagf("QUIET = %d\n", QUIET);
      _imp_diagf("\nLocal Variables:\n\n");
      _imp_bt_int(FLAGS);
      _imp_diagf("TX @[%p] = <RECORD>\n", TX);
      _imp_end_backtrace();
    } /* end of DELETENAMES */

    //   932
    //   933  %ROUTINE analyse

    void ANALYSE(void) {
      _imp_enter(ANALYSE);

      //   934
      //   935     %CONSTINTEGER order bits = 16_3000, order bit = 16_1000
      //   936     %CONSTINTEGER escape     = 16_1000
      //   937     %INTEGER strp, mark, flags, prot err, k, s, c

      int STRP = 0xFEFEFEFE;
      int MARK = 0xFEFEFEFE;
      int FLAGS = 0xFEFEFEFE;
      int PROTERR = 0xFEFEFEFE;
      int K = 0xFEFEFEFE;
      int S = 0xFEFEFEFE;
      int C = 0xFEFEFEFE;

      //   938     %OWNINTEGER key = 0

      static int KEY = 0;

      //   939     {GT:%SHORT}%INTEGER node;      !imp77:

      int NODE = 0xFEFEFEFE;

      //   940     {GT:%SHORT}%INTEGERNAME z;     !imp77:

      int *Z = (void *)0xFEFEFEFEFEFEFEFELL;

      //   941     %RECORD(arfm)%NAME arp;  !imp77:

      struct ARFM *ARP = (void *)0xFEFEFEFEFEFEFEFELL;

      //   942     %SWITCH act(actions:phrasal), paction(0:15)

      int ACT_index;
      int ACT_line;
      char *ACT_file;
      static const void *ACT[21] = {&&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing,
                                    &&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing,
                                    &&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing,
                                    &&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing,
                                    &&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing, &&case_ACT_missing,
                                    &&case_ACT_missing};

      int PACTION_index;
      int PACTION_line;
      char *PACTION_file;
      static const void *PACTION[16] = {
          &&case_PACTION_missing, &&case_PACTION_missing, &&case_PACTION_missing, &&case_PACTION_missing,
          &&case_PACTION_missing, &&case_PACTION_missing, &&case_PACTION_missing, &&case_PACTION_missing,
          &&case_PACTION_missing, &&case_PACTION_missing, &&case_PACTION_missing, &&case_PACTION_missing,
          &&case_PACTION_missing, &&case_PACTION_missing, &&case_PACTION_missing, &&case_PACTION_missing};

      //   943
      //   944     %ROUTINE trace analysis

      void TRACEANALYSIS(void) {
        _imp_enter(TRACEANALYSIS);

        //   945        !diagnostic trace routine (diagnose&1 # 0)
        //   946        %INTEGER a

        int A = 0xFEFEFEFE;

        //   947        %ROUTINE show(%INTEGER a)

        void SHOW(int A) {
          _imp_enter(SHOW);

          //   948           %IF 0 < a < 130 %START

          {
            int tmp;
            if ((0) >= (tmp = A)) goto L_0062;
            // Double-sided test on A (Part II)
            if (tmp >= (130)) goto L_0062;
          }

          //   949              space

          _imp_SPACE();

          //   950              printstring(text(a))

          _imp_printf("%S", _imp_strp(TEXT[A]));

          //   951           %FINISH %ELSE write(a, 3)

          goto L_0063;
        L_0062:;
          _imp_WRITE(A, 3);
        L_0063:;

        //   952        %END

          _imp_return;
          _imp_begin_backtrace(SHOW);
          _imp_diagf("\n\nArguments:\n\n");
          _imp_diagf("A = %d\n", A);
          _imp_diagf("\nLocal Variables:\n\n");
          _imp_end_backtrace();
        } /* end of SHOW */

        //   953        %OWNINTEGER la1=0, la2=0, lsa=0, lt=0

        static int LA1 = 0;
        static int LA2 = 0;
        static int LSA = 0;
        static int LT = 0;

        //   954        newline %IF mon pos # pos %AND sym # nl

        if ((MONPOS) == (POS)) goto L_0064;
        if ((SYM) == (10)) goto L_0064;
        _imp_NEWLINE();
      L_0064:;

      //   955        mon pos = pos

        MONPOS = POS;

        //   956        write(g, 3)

        _imp_WRITE(G, 3);

        //   957        space

        _imp_SPACE();

        //   958        printstring(text(class))

        _imp_printf("%S", _imp_strp(TEXT[CLASS]));

        //   959        printsymbol('"') %IF gg&trans bit # 0

        if ((GG & 16384) == (0)) goto L_0065;
        _imp_PRINTSYMBOL(34);
      L_0065:;

      //   960        a = gg>>8&15

        A = (unsigned int)GG >> 8 & 15;

        //   961        %IF a # 0 %START

        if ((A) == (0)) goto L_0066;

          //   962           printsymbol('{')

        _imp_PRINTSYMBOL(123);

        //   963           write(a, 0)

        _imp_WRITE(A, 0);

        //   964           printsymbol('}')

        _imp_PRINTSYMBOL(125);

        //   965        %FINISH

      L_0066:;

      //   966        %IF atom1 # la1 %OR atom2 # la2 %OR lsa # subatom %C

        if ((ATOM1) != (LA1)) goto L_0067;
        if ((ATOM2) != (LA2)) goto L_0067;
        if ((LSA) != (SUBATOM)) goto L_0067;
        if ((LT) == (TYPE)) goto L_0068;
      L_0067:;

      //   967+                       %OR lt # type %START
      //   968           printstring(" [")

        _imp_printf("%s", " [");

        //   969           la1 = atom1

        LA1 = ATOM1;

        //   970           show(la1)

        SHOW(LA1);

        //   971           la2 = atom2

        LA2 = ATOM2;

        //   972           show(la2)

        SHOW(LA2);

        //   973           lsa = subatom

        LSA = SUBATOM;

        //   974           write(lsa, 3)

        _imp_WRITE(LSA, 3);

        //   975           lt = type

        LT = TYPE;

        //   976           write(lt, 5)

        _imp_WRITE(LT, 5);

        //   977           printsymbol(']')

        _imp_PRINTSYMBOL(93);

        //   978        %FINISH

      L_0068:;

      //   979        newline

        _imp_NEWLINE();

        //   980     %END

        _imp_return;
        _imp_begin_backtrace(TRACEANALYSIS);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_bt_int(A);
        _imp_bt_int(LA1);
        _imp_bt_int(LA2);
        _imp_bt_int(LSA);
        _imp_bt_int(LT);
        _imp_end_backtrace();
      } /* end of TRACEANALYSIS */

      //   981
      //   982  %ROUTINE read sym

      void READSYM(void) {
        _imp_enter(READSYM);

        //   983
        //   984  %routine get next source char

        void GETNEXTSOURCECHAR(void) {
          _imp_enter(GETNEXTSOURCECHAR);

          //   985     %owninteger len=0

          static int LEN = 0;

          //   986     %if sym = nl %start

          if ((SYM) != (10)) goto L_0069;

            //   987        current char == char(1)

          CURRENTCHAR = (unsigned char *)&CHAR[1];
          //   988        readrecord (len, current char)                    ;! BUG??? readrecord reads from tanks but there are none to be read from in pass1.

          READRECORD(&LEN, CURRENTCHAR);

          //   989        len = len + 1

          LEN = LEN + 1;

          //   990        char(len) = nl

          CHAR[LEN] = 10;

          //   991        pos = 0

          POS = 0;

          //   992        column = 0;           !???????????????????????????????????

          COLUMN = 0;

          //   993     %finish

        L_0069:;

        //   994     pos = pos + 1

          POS = POS + 1;

          //   995     sym = current char

          SYM = *CURRENTCHAR;

          //   996  !!   current char == BYTEINTEGER(ADDR(current char)+1) ; !! WAS  ++ 1
          //   997     current char == current char++1

          CURRENTCHAR = (unsigned char *)CURRENTCHAR + 1;
          //   998     printsymbol(sym) %if list <= 0

          if ((LIST) > (0)) goto L_006A;
          _imp_PRINTSYMBOL(SYM);
        L_006A:;

        //   999     column = column + 1

          COLUMN = COLUMN + 1;

          //  1000  %end

          _imp_return;
          _imp_begin_backtrace(GETNEXTSOURCECHAR);
          _imp_diagf("\nLocal Variables:\n\n");
          _imp_bt_int(LEN);
          _imp_end_backtrace();
        } /* end of GETNEXTSOURCECHAR */

        //  1001
        //  1002  %CONSTBYTEINTEGERARRAY mapped(0:127) = %C

        const unsigned char MAPPED[128] = {
            0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  10, 0,  3,  0,  0,  0,  0,  0,  0,  0,  0,   0,   0,   0,  0,  0,
            0,  0,  0,  0,  0,  0,  0,  33, 34, 35, 36, 1,  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, 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, 2,  124, 125, 126, 0};
        _imp_create_constdv(const, unsigned char, MAPPED, 0, 127);

        //  1003+    0,  0,  0,  0,   0,  0,  0,  0,    0,  0, nl,  0,  3 ,  0,  0,  0,
        //  1004+    0,  0,  0,  0,   0,  0,  0,  0,    0,  0,  0,  0,   0,  0,  0,  0,
        //  1005+   0 ,'!','"','#', '$', 1 ,'&', 39,  '(',')','*','+', ',','-','.','/',
        //  1006+  '0','1','2','3', '4','5','6','7',  '8','9',':',';', '<','=','>','?',
        //  1007+  '@','A','B','C', 'D','E','F','G',  'H','I','J','K', 'L','M','N','O',
        //  1008+  'P','Q','R','S', 'T','U','V','W',  'X','Y','Z','[', '\',']','^','_',
        //  1009+  '`','A','B','C', 'D','E','F','G',  'H','I','J','K', 'L','M','N','O',
        //  1010+  'P','Q','R','S', 'T','U','V','W',  'X','Y','Z', 2 , '|','}','~',  0
        //  1011
        //  1012  !!   0 = space
        //  1013  !!   1 = %
        //  1014  !!   2 = {
        //  1015  !!   3 = ff
        //  1016  !!   other values represent themselves
        //  1017
        //  1018     %IF sym = nl %START

        if ((SYM) != (10)) goto L_006B;

          //  1019  s1:   lines = lines+1

      U_1005:;
        LINES = LINES + 1;

        //  1020        printsymbol(end mark) %if end mark # 0

        if ((ENDMARK) == (0)) goto L_006C;
        _imp_PRINTSYMBOL(ENDMARK);
      L_006C:;

      //  1021  s11:  pos = 0;  pos1 = 0;  pos2 = 0;  margin = 0;  column = 0

      U_1006:;
        POS = 0;
        POS1 = 0;
        POS2 = 0;
        MARGIN = 0;
        COLUMN = 0;

        //  1022        end mark = 0

        ENDMARK = 0;

        //  1023        %IF list <= 0 %START

        if ((LIST) > (0)) goto L_006D;

          //  1024           %IF include # 0 %START

        if ((INCLUDE) == (0)) goto L_006E;

          //  1025              printstring(" &");  write(lines, -4)

        _imp_printf("%s", " &");
        _imp_WRITE(LINES, -4);

        //  1026           %FINISH %ELSE  write(lines, 5)

        goto L_006F;
      L_006E:;
        _imp_WRITE(LINES, 5);
      L_006F:;

      //  1027           csym = cont;  printsymbol(csym)

        CSYM = CONT;
        _imp_PRINTSYMBOL(CSYM);

        //  1028           space

        _imp_SPACE();

        //  1029           %IF error margin # 0 %START

        if ((ERRORMARGIN) == (0)) goto L_0070;

          //  1030              lines = lines-1

        LINES = LINES - 1;

        //  1031              spaces(error margin)

        _imp_SPACES(ERRORMARGIN);

        //  1032              error margin = 0

        ERRORMARGIN = 0;

        //  1033              %IF error sym # 0 %START

        if ((ERRORSYM) == (0)) goto L_0071;

          //  1034                 printsymbol(error sym)

        _imp_PRINTSYMBOL(ERRORSYM);

        //  1035                 pos = 1;  char(1) = error sym

        POS = 1;
        CHAR[1] = ERRORSYM;

        //  1036                 sym = error sym;  error sym = 0

        SYM = ERRORSYM;
        ERRORSYM = 0;

        //  1037                 ->s5

        goto U_1007;

        //  1038              %FINISH

      L_0071:;

      //  1039           %FINISH

      L_0070:;

      //  1040        %FINISH

      L_006D:;

      //  1041  s2:   symtype = 1

      U_1008:;
        SYMTYPE = 1;

        //  1042     %FINISH

      L_006B:;

      //  1043  s3:get next source char

      U_1009:;
        GETNEXTSOURCECHAR();

        //  1044  s5:%IF sym # nl %START

      U_1007:;
        if ((SYM) == (10)) goto L_0072;

          //  1045        %RETURN %IF quote # 0;                     !dont alter strings

        if ((QUOTE) == (0)) goto L_0073;
        _imp_return;
      L_0073:;

      //  1046        sym = mapped(sym&127)

        SYM = MAPPED[SYM & 127];

        //  1047        %IF sym <= 3 %START;                       !special symbol

        if ((SYM) > (3)) goto L_0074;

          //  1048           ->s2 %IF sym = 0;                       !space (or dubious control)

        if ((SYM) != (0)) goto L_0075;
        goto U_1008;
      L_0075:;

      //  1049           symtype = 2 %AND ->s3 %IF sym = 1;      !%

        if ((SYM) != (1)) goto L_0076;
        SYMTYPE = 2;
        goto U_1009;
      L_0076:;

      //  1050           cont = '+' %AND ->s11 %IF sym = 3;      !ff

        if ((SYM) != (3)) goto L_0077;
        CONT = 43;
        goto U_1006;
      L_0077:;

      //  1051           !must be {
      //  1052           %CYCLE

      L_0078:;

      //  1053              get next source char

        GETNEXTSOURCECHAR();

        //  1054              ->s3 %IF sym = '}'

        if ((SYM) != (125)) goto L_0079;
        goto U_1009;
      L_0079:;

      //  1055              ->s4 %IF sym = nl

        if ((SYM) != (10)) goto L_007A;
        goto U_100A;
      L_007A:;

      //  1056           %REPEAT

        goto L_0078;

        //  1057        %FINISH

      L_0074:;

      //  1058        key = kdict(sym)

        KEY = KDICT[SYM - 32];

        //  1059        %IF key&3 = 0 %AND symtype = 2 %START;            !keyword

        if ((KEY & 3) != (0)) goto L_007B;
        if ((SYMTYPE) != (2)) goto L_007B;

          //  1060           %IF sym = 'C' %AND current char = nl %START;     !%C...

        if ((SYM) != (67)) goto L_007C;
        if ((*CURRENTCHAR) != (10)) goto L_007C;

          //  1061              get next source char;  cont = '+';  ->s1

        GETNEXTSOURCECHAR();
        CONT = 43;
        goto U_1005;

        //  1062           %FINISH

      L_007C:;

      //  1063        %ELSE

        goto L_007D;
      L_007B:;

      //  1064           symtype = key&3-2

        SYMTYPE = (KEY & 3) - 2;

        //  1065        %FINISH

      L_007D:;

      //  1066        %RETURN

        _imp_return;

        //  1067     %FINISH

      L_0072:;

      //  1068  s4:cont = '+'

      U_100A:;
        CONT = 43;

        //  1069     symtype = quote

        SYMTYPE = QUOTE;

        //  1070  %END

        _imp_return;
        _imp_begin_backtrace(READSYM);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of READSYM */

      //  1071
      //  1072  %INTEGERFN format selected

      int FORMATSELECTED(void) {
        _imp_enter(FORMATSELECTED);

        //  1073     format list = tag(format)_app;          !number of names

        FORMATLIST = TAG[FORMAT].APP;

        //  1074     %IF format list < 0 %START;         !forward ref

        if ((FORMATLIST) >= (0)) goto L_007E;

          //  1075        atom1 = error+22

        ATOM1 = 32768 + 22;

        //  1076        %RESULT = 0

        _imp_result(0);

        //  1077     %FINISH

      L_007E:;

      //  1078     %IF sym = '_' %START

        if ((SYM) != (95)) goto L_007F;

          //  1079        escape class = esc rec

        ESCAPECLASS = 255;

        //  1080        search base = tag(format)_format

        SEARCHBASE = TAG[FORMAT].FORMAT;

        //  1081     %FINISH

      L_007F:;

      //  1082     %RESULT = 1

        _imp_result(1);

        //  1083  %END

        _imp_begin_backtrace(FORMATSELECTED);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of FORMATSELECTED */

      //  1084
      //  1085  %ROUTINE code atom(%INTEGER target)

      void CODEATOM(int TARGET) {
        _imp_enter(CODEATOM);

        //  1086     %INTEGER dbase, da

        int DBASE = 0xFEFEFEFE;
        int DA = 0xFEFEFEFE;

        //  1087     %INTEGER base, n, mul, pend quote

        int BASE = 0xFEFEFEFE;
        int N = 0xFEFEFEFE;
        int MUL = 0xFEFEFEFE;
        int PENDQUOTE = 0xFEFEFEFE;

        //  1088     %INTEGER j,k,l, pt

        int J = 0xFEFEFEFE;
        int K = 0xFEFEFEFE;
        int L = 0xFEFEFEFE;
        int PT = 0xFEFEFEFE;

        //  1089
        //  1090     %ROUTINE lookup(%INTEGER d)

        void LOOKUP(int D) {
          _imp_enter(LOOKUP);

          //  1091        %CONSTINTEGER magic = 6700421
          //  1092        %INTEGER new name, vid, k1, k2, form

          int NEWNAME = 0xFEFEFEFE;
          int VID = 0xFEFEFEFE;
          int K1 = 0xFEFEFEFE;
          int K2 = 0xFEFEFEFE;
          int FORM = 0xFEFEFEFE;

          //  1093        %RECORD(tagfm)%NAME t;      !imp77:

          struct TAGFM *T = (void *)0xFEFEFEFEFEFEFEFELL;

          //  1094        %INTEGER new

          int NEW = 0xFEFEFEFE;

          //  1095
          //  1096        !first locate the text of the name
          //  1097
          //  1098        new = addr(dict(dmax+1))

          NEW = ((_imp_address)(&DICT[DMAX + 1 - 1]));

          //  1099
          //  1100              K2 = hash value*magic

          K2 = HASHVALUE * 6700421;

          //  1101
          //  1102              !*******************************************************
          //  1103
          //  1104        k2 = k2>>(32-2*name bits)!1;         !IMP77:

          K2 = (unsigned int)K2 >> 32 - 2 * 11 | 1;

          //  1105        k1 = k2>>name bits;                       !giving name bits

          K1 = (unsigned int)K2 >> 11;

          //  1106        %CYCLE

        L_0080:;

        //  1107           newname = hash(k1)

          NEWNAME = HASH[K1];

          //  1108           %EXIT %IF newname = 0;                !not in

          if ((NEWNAME) != (0)) goto L_0081;
          goto L_0082;
        L_0081:;

        //  1109           ->in %IF string(addr(dict(newname+1))) = string(new)


          /* clang-format off */
if (_imp_strcmp((_imp_string *)_imp_STRING(((_imp_address)(&DICT[NEWNAME + 1 - 1]))), (_imp_string *)_imp_STRING(NEW)) != 0) goto L_0083;

          /* clang-format on */
          goto U_100B;
        L_0083:;

        //  1110           k1 = (k1+k2)&max names

          K1 = K1 + K2 & 2047;

          //  1111        %REPEAT

          goto L_0080;
        L_0082:;

        //  1112
        //  1113        ! not found
        //  1114
        //  1115        spare names = spare names-1

          SPARENAMES = SPARENAMES - 1;

          //  1116        abandon(2) %IF spare names <= 0

          if ((SPARENAMES) > (0)) goto L_0084;
          ABANDON(2);
        L_0084:;

        //  1117        hash(k1) = dmax;                !put it in

          HASH[K1] = DMAX;

          //  1118        dict(dmax) = -1

          DICT[DMAX - 1] = -1;

          //  1119        newname = dmax;  dmax = dp;  ->not in

          NEWNAME = DMAX;
          DMAX = DP;
          goto U_100C;

          //  1120
          //  1121  in:   search base = rbase %IF this >= 0 %AND d # 0;  !record elem defn

        U_100B:;
          if ((THIS) < (0)) goto L_0085;
          if ((D) == (0)) goto L_0085;
          SEARCHBASE = RBASE;
        L_0085:;

        //  1122        %IF search base # 0 %START;               !record subname

          if ((SEARCHBASE) == (0)) goto L_0086;

            //  1123           new = -1

          NEW = -1;

          //  1124           x = search base

          X = SEARCHBASE;

          //  1125           %CYCLE

        L_0087:;

        //  1126              ->not in %IF x < format list

          if ((X) >= (FORMATLIST)) goto L_0088;
          goto U_100C;
        L_0088:;

        //  1127              %EXIT %IF tag(x)_text = new name

          if ((TAG[X].TEXT) != (NEWNAME)) goto L_0089;
          goto L_008A;
        L_0089:;

        //  1128              x = x-1

          X = X - 1;

          //  1129           %REPEAT

          goto L_0087;
        L_008A:;

        //  1130        %FINISH %ELSE %START;                                  !hash in for normal names

          goto L_008B;
        L_0086:;

        //  1131           x = dict(newname)

          X = DICT[NEWNAME - 1];

          //  1132           ->not in %IF x <= limit;         !wrong level

          if ((X) > (LIMIT)) goto L_008C;
          goto U_100C;
        L_008C:;

        //  1133        %FINISH

        L_008B:;

        //  1134
        //  1135        subatom = x;                            !name found, extract info

          SUBATOM = X;

          //  1136        t == tag(x)

          T = (struct TAGFM *)&TAG[X];
          //  1137        atom flags = t_flags

          ATOMFLAGS = T->FLAGS;

          //  1138        format = t_format;  app = t_app

          FORMAT = T->FORMAT;
          APP = T->APP;

          //  1139        protection = atom flags&prot

          PROTECTION = ATOMFLAGS & 256;

          //  1140        type = atom flags>>4&7;  atom1 = amap(atom flags&15)

          TYPE = (unsigned int)ATOMFLAGS >> 4 & 7;
          ATOM1 = AMAP[ATOMFLAGS & 15];

          //  1141
          //  1142        %IF diag&8 # 0 %START

          if ((DIAG & 8) == (0)) goto L_008D;

            //  1143           printstring("lookup:")

          _imp_printf("%s", "lookup:");

          //  1144           write(atom1, 3)

          _imp_WRITE(ATOM1, 3);

          //  1145           write(type, 1)

          _imp_WRITE(TYPE, 1);

          //  1146           write(app, 3)

          _imp_WRITE(APP, 3);

          //  1147           write(format, 5)

          _imp_WRITE(FORMAT, 5);

          //  1148           write(atom flags, 3)

          _imp_WRITE(ATOMFLAGS, 3);

          //  1149           newline

          _imp_NEWLINE();

          //  1150        %FINISH

        L_008D:;

        //  1151
        //  1152        %IF d = 0 %START;                                !old name wanted

          if ((D) != (0)) goto L_008E;

            //  1153           t_flags <- t_flags!used bit

          T->FLAGS = (int)(T->FLAGS | 32768);

          //  1154           search base = 0

          SEARCHBASE = 0;

          //  1155
          //  1156           %IF atom flags&subname # 0 %AND format # 0 %START; !a record

          if ((ATOMFLAGS & 2048) == (0)) goto L_008F;
          if ((FORMAT) == (0)) goto L_008F;

            //  1157              %RETURN %IF format selected = 0

          if ((FORMATSELECTED()) != (0)) goto L_0090;
          _imp_return;
        L_0090:;

        //  1158           %FINISH

        L_008F:;

        //  1159
        //  1160           %IF atom flags&parameters # 0 %START;        !proc or array

          if ((ATOMFLAGS & 4096) == (0)) goto L_0091;

            //  1161
            //  1162              %IF app = 0 %START;                  !no parameters needed

          if ((APP) != (0)) goto L_0092;

            //  1163                 atom2 = atom1

          ATOM2 = ATOM1;

          //  1164                 atom1 = atom1-4

          ATOM1 = ATOM1 - 4;

          //  1165                 %IF 97 <= atom1 <= 98 %START

          {
            int tmp;
            if ((97) > (tmp = ATOM1)) goto L_0093;
            // Double-sided test on ATOM1 (Part II)
            if (tmp > (98)) goto L_0093;
          }

          //  1166                    map gg = atom1;  atom1 = var

          MAPGG = ATOM1;
          ATOM1 = 91;

          //  1167                 %FINISH

        L_0093:;

        //  1168              %FINISH %ELSE %START

          goto L_0094;
        L_0092:;

        //  1169                 %IF sym = '(' %START

          if ((SYM) != (40)) goto L_0095;

            //  1170                    search base = 0;                  !ignore format for now

          SEARCHBASE = 0;

          //  1171                    %IF atom1 >= 106 %START;             !arrays

          if ((ATOM1) < (106)) goto L_0096;

            //  1172                       app = phrase(app+200)

          APP = PHRASE[APP + 200 - 200];

          //  1173                       escape class = esc array

          ESCAPECLASS = 254;

          //  1174                       atom1 = (atom1-106)>>1+91;     !a,an->v  na,nan->n

          ATOM1 = ((unsigned int)ATOM1 - 106 >> 1) + 91;

          //  1175                    %FINISH %ELSE %START;                            !procedures

          goto L_0097;
        L_0096:;

        //  1176                       escape class = esc proc

          ESCAPECLASS = 253;

          //  1177                       atom1 = atom1-4

          ATOM1 = ATOM1 - 4;

          //  1178                    %FINISH

        L_0097:;

        //  1179                    phrase(200) = app

          PHRASE[0] = APP;

          //  1180                 %FINISH

        L_0095:;

        //  1181              %FINISH

        L_0094:;

        //  1182              pos2 = pos;  %return

          POS2 = POS;
          _imp_return;

          //  1183           %FINISH

        L_0091:;

        //  1184
        //  1185           !deal with constintegers etc
        //  1186
        //  1187           %IF atom flags&const bit # 0 %AND atom1 = var %START

          if ((ATOMFLAGS & 8192) == (0)) goto L_0098;
          if ((ATOM1) != (91)) goto L_0098;

            //  1188                 map gg = const;  atom2 = const

          MAPGG = 93;
          ATOM2 = 93;

          //  1189                 subatom = -subatom %IF type = integer

          if ((TYPE) != (1)) goto L_0099;
          SUBATOM = -SUBATOM;
        L_0099:;

        //  1190           %FINISH

        L_0098:;

        //  1191           %RETURN

          _imp_return;

          //  1192
          //  1193        %FINISH

        L_008E:;

        //  1194                                                   !new name wanted
        //  1195        ->not in %IF tbase # tstart;               !dont fault proc parm-parm

          if ((TBASE) == (TSTART)) goto L_009A;
          goto U_100C;
        L_009A:;

        //  1196        %IF d = lab+spec+used bit %START

          if ((D) != (3 + 128 + 32768)) goto L_009B;

            //  1197           t_flags = t_flags!used bit

          T->FLAGS = T->FLAGS | 32768;

          //  1198           %RETURN

          _imp_return;

          //  1199        %FINISH

        L_009B:;

        //  1200        %IF atom flags&spec # 0 %START;                 !a spec has been given

          if ((ATOMFLAGS & 128) == (0)) goto L_009C;

            //  1201           %IF d = lab %START;                     !define label

          if ((D) != (3)) goto L_009D;

            //  1202              t_flags <- lab!used bit

          T->FLAGS = (int)(3 | 32768);

          //  1203              %RETURN

          _imp_return;

          //  1204           %FINISH

        L_009D:;

        //  1205           %IF 7 <= decl&15 <= 10 %AND decl&spec = 0 %START

          {
            int tmp;
            if ((7) > (tmp = DECL & 15)) goto L_009E;
            // Double-sided test on DECL & 15 (Part II)
            if (tmp > (10)) goto L_009E;
          }
          if ((DECL & 128) != (0)) goto L_009E;

            //  1206
            //  1207              !procedure definition after spec
            //  1208
            //  1209              %IF (decl!!atom flags)&2_1111111 = 0 %START;  !correct type?

          if (((DECL ^ ATOMFLAGS) & 127) != (0)) goto L_009F;

            //  1210                 t_flags = t_flags-spec

          T->FLAGS = T->FLAGS - 128;

          //  1211                 spec given = 1

          SPECGIVEN = 1;

          //  1212                 %RETURN

          _imp_return;

          //  1213              %FINISH

        L_009F:;

        //  1214
        //  1215              !note that an external procedure must be speced as a
        //  1216              !non-external procedure.
        //  1217
        //  1218           %FINISH

        L_009E:;

        //  1219           %IF decl&15 = recfm %START;                   !recordformat

          if ((DECL & 15) != (4)) goto L_00A0;

            //  1220              t_flags = record<<4+recfm

          T->FLAGS = (((int)4) << (((int)4) & 31)) + 4;

          //  1221              t_format = fdef

          T->FORMAT = FDEF;

          //  1222              %RETURN

          _imp_return;

          //  1223           %FINISH

        L_00A0:;

        //  1224        %FINISH

        L_009C:;

        //  1225        %RETURN %IF last1 = jump %AND atom1 = swit

          if ((LAST1) != (54)) goto L_00A1;
          if ((ATOM1) != (105)) goto L_00A1;
          _imp_return;
        L_00A1:;

        //  1226        copy = pos1 %IF copy = 0

          if ((COPY) != (0)) goto L_00A2;
          COPY = POS1;
        L_00A2:;

        //  1227
        //  1228  notin:app = 0;  vid = 0

        U_100C:;
          APP = 0;
          VID = 0;

          //  1229        atom1 = error+2

          ATOM1 = 32768 + 2;

          //  1230
          //  1231        %return %if d = 0;                               !old name wanted

          if ((D) != (0)) goto L_00A3;
          _imp_return;
        L_00A3:;

        //  1232        type = d>>4&7;  form = d&15;  atom1 = amap(form)

          TYPE = (unsigned int)D >> 4 & 7;
          FORM = D & 15;
          ATOM1 = AMAP[FORM];

          //  1233
          //  1234        %IF this < 0 %START;                       !normal scope

          if ((THIS) >= (0)) goto L_00A4;

            //  1235           new = newname

          NEW = NEWNAME;

          //  1236           tmax = tmax+1;  x = tmax

          TMAX = TMAX + 1;
          X = TMAX;

          //  1237        %FINISH %ELSE %START;                      !recordformat scope

          goto L_00A5;
        L_00A4:;

        //  1238           new = -1

          NEW = -1;

          //  1239           recid = recid-1;  vid = recid

          RECID = RECID - 1;
          VID = RECID;

          //  1240           tmin = tmin-1;  x = tmin

          TMIN = TMIN - 1;
          X = TMIN;

          //  1241           format list = tmin

          FORMATLIST = TMIN;

          //  1242        %FINISH

        L_00A5:;

        //  1243
        //  1244        %IF 11 <= form <= 14 %START;                     !arrays

          {
            int tmp;
            if ((11) > (tmp = FORM)) goto L_00A6;
            // Double-sided test on FORM (Part II)
            if (tmp > (14)) goto L_00A6;
          }

          //  1245           dim = 1 %IF dim = 0;           !set dim for owns

          if ((DIM) != (0)) goto L_00A7;
          DIM = 1;
        L_00A7:;

        //  1246           app = dim

          APP = DIM;

          //  1247        %FINISH

        L_00A6:;

        //  1248
        //  1249        d = d!used bit %IF (otype > 2 %AND d&spec = 0) %OR perm # 0

          if ((OTYPE) <= (2)) goto L_00A8;
          if ((D & 128) == (0)) goto L_00A9;
        L_00A8:;
          if ((PERM) == (0)) goto L_00AA;
        L_00A9:;
          D = D | 32768;
        L_00AA:;

        //  1250
        //  1251        !external definitions need not be used in the file in which
        //  1252        !they are defined, so inhibit a useless unused warning.
        //  1253
        //  1254        t == tag(x)

          T = (struct TAGFM *)&TAG[X];
          //  1255        %IF form = lab %START

          if ((FORM) != (3)) goto L_00AB;

            //  1256           id = id+1;  vid = id

          ID = ID + 1;
          VID = ID;

          //  1257        %FINISH

        L_00AB:;

        //  1258        t_index = vid

          T->INDEX = VID;

          //  1259        t_text   = new name

          T->TEXT = NEWNAME;

          //  1260        t_flags <- d

          T->FLAGS = (int)(D);

          //  1261        t_app    = app

          T->APP = APP;

          //  1262        t_format = fdef;  format = fdef

          T->FORMAT = FDEF;
          FORMAT = FDEF;

          //  1263        subatom = x

          SUBATOM = X;

          //  1264
          //  1265        %IF new >= 0 %START;                             !insert into hash table

          if ((NEW) < (0)) goto L_00AC;

            //  1266           t_link = dict(new);  dict(new) = x

          T->LINK = DICT[NEW - 1];
          DICT[NEW - 1] = X;

          //  1267           %IF gmin = max grammar %START;                !proc param params

          if ((GMIN) != (1800)) goto L_00AD;

            //  1268              tmin = tmin-1;  subatom = tmin

          TMIN = TMIN - 1;
          SUBATOM = TMIN;

          //  1269              tag(tmin) = t

          TAG[TMIN] = *T;

          //  1270           %FINISH

        L_00AD:;

        //  1271        %FINISH

        L_00AC:;

        //  1272        abandon(3) %IF tmax >= tmin

          if ((TMAX) < (TMIN)) goto L_00AE;
          ABANDON(3);
        L_00AE:;

        //  1273     %END

          _imp_return;
          _imp_begin_backtrace(LOOKUP);
          _imp_diagf("\n\nArguments:\n\n");
          _imp_diagf("D = %d\n", D);
          _imp_diagf("\nLocal Variables:\n\n");
          _imp_bt_int(NEWNAME);
          _imp_bt_int(VID);
          _imp_bt_int(K1);
          _imp_bt_int(K2);
          _imp_bt_int(FORM);
          _imp_diagf("T @[%p] = <RECORD>\n", T);
          _imp_bt_int(NEW);
          _imp_end_backtrace();
        } /* end of LOOKUP */

        //  1274
        //  1275
        //  1276
        //  1277  top:  pos1 = pos

      U_100D:;
        POS1 = POS;

        //  1278        subatom = 0;  pend quote = 0

        SUBATOM = 0;
        PENDQUOTE = 0;

        //  1279
        //  1280        !app and format must be left for assigning to papp & pformat
        //  1281
        //  1282        ->name %IF symtype = -2;                   !letter

        if ((SYMTYPE) != (-2)) goto L_00AF;
        goto U_100E;
      L_00AF:;

      //  1283        ->number %IF symtype < 0;                  !digit

        if ((SYMTYPE) >= (0)) goto L_00B0;
        goto U_100F;
      L_00B0:;

      //  1284        %IF symtype = 0 %START

        if ((SYMTYPE) != (0)) goto L_00B1;

          //  1285           atom1 = termin;  atom2 = 0

        ATOM1 = 20;
        ATOM2 = 0;

        //  1286           %RETURN

        _imp_return;

        //  1287        %FINISH

      L_00B1:;

      //  1288        %IF symtype # 2 %START;                    !catch keywords here

        if ((SYMTYPE) == (2)) goto L_00B2;

          //  1289           ->text %IF quote # 0;                   !completion of text

        if ((QUOTE) == (0)) goto L_00B3;
        goto U_1010;
      L_00B3:;

      //  1290           ->strings %IF sym = squote;             !start of string

        if ((SYM) != (34)) goto L_00B4;
        goto U_1011;
      L_00B4:;

      //  1291           ->symbols %IF sym = cquote;             !start of symbol

        if ((SYM) != (39)) goto L_00B5;
        goto U_1012;
      L_00B5:;

      //  1292           ->number %IF sym = '.' %AND '0' <= current char <= '9'

        if ((SYM) != (46)) goto L_00B6;
        {
          unsigned char tmp;
          if ((48) > (tmp = *CURRENTCHAR)) goto L_00B6;
          // Double-sided test on CURRENTCHAR (Part II)
          if (tmp > (57)) goto L_00B6;
        }
        goto U_100F;
      L_00B6:;

      //  1293        %FINISH

      L_00B2:;

      //  1294
      //  1295                                                   !locate atom in fixed dict
      //  1296        k = key>>2;  read sym

        K = (unsigned int)KEY >> 2;
        READSYM();

        //  1297        %CYCLE

      L_00B7:;

      //  1298           j = kdict(k)

        J = KDICT[K - 32];

        //  1299           %EXIT %IF j&16_4000 # 0

        if ((J & 16384) == (0)) goto L_00B8;
        goto L_00B9;
      L_00B8:;

      //  1300           %IF j&127 # sym %OR symtype < 0 %START

        if ((J & 127) != (SYM)) goto L_00BA;
        if ((SYMTYPE) >= (0)) goto L_00BB;
      L_00BA:;

      //  1301              ->err %UNLESS j < 0

        if ((J) < (0)) goto L_00BC;
        goto U_1013;
      L_00BC:;

      //  1302              k = k+1

        K = K + 1;

        //  1303           %FINISH %ELSE %START

        goto L_00BD;
      L_00BB:;

      //  1304              l = j>>7&127;  read sym

        L = (unsigned int)J >> 7 & 127;
        READSYM();

        //  1305              %IF j > 0 %START

        if ((J) <= (0)) goto L_00BE;

          //  1306                 %IF l # 0 %START

        if ((L) == (0)) goto L_00BF;

          //  1307                    ->err %IF l # sym %OR symtype < 0

        if ((L) != (SYM)) goto L_00C0;
        if ((SYMTYPE) >= (0)) goto L_00C1;
      L_00C0:;
        goto U_1013;
      L_00C1:;

      //  1308                    read sym

        READSYM();

        //  1309                 %FINISH

      L_00BF:;

      //  1310                 l = 1

        L = 1;

        //  1311              %FINISH

      L_00BE:;

      //  1312              k = k+l

        K = K + L;

        //  1313           %FINISH

      L_00BD:;

      //  1314        %REPEAT

        goto L_00B7;
      L_00B9:;

      //  1315        atom1 = j&127

        ATOM1 = J & 127;

        //  1316        %IF atom1 = 0 %START;                      !comma

        if ((ATOM1) != (0)) goto L_00C2;

          //  1317           atom1 = 19;  subatom = 19;  atom2 = 0

        ATOM1 = 19;
        SUBATOM = 19;
        ATOM2 = 0;

        //  1318           %IF sym = nl %START

        if ((SYM) != (10)) goto L_00C3;

          //  1319              %RETURN %IF ocount >= 0

        if ((OCOUNT) < (0)) goto L_00C4;
        _imp_return;
      L_00C4:;

      //  1320
      //  1321              !special action needs to be taken with <comma nl> as
      //  1322              !const array lists can be enormous
      //  1323
      //  1324              read sym

        READSYM();

        //  1325           %FINISH

      L_00C3:;

      //  1326           %RETURN

        _imp_return;

        //  1327        %FINISH

      L_00C2:;

      //  1328        atom2 = j>>7&127

        ATOM2 = (unsigned int)J >> 7 & 127;

        //  1329        subatom = kdict(k+1)&16_3fff

        SUBATOM = KDICT[K + 1 - 32] & 16383;

        //  1330        !!!!!cont = ' '
        //  1331        %RETURN

        _imp_return;

        //  1332
        //  1333        !report an error. adjust the error marker (pos1) to point
        //  1334        !to the faulty character in an atom, but care needs to be taken
        //  1335        !to prevent misleading reports in cases like ...?????
        //  1336
        //  1337  err:  atom1 = error+1;  atom2 = 0

      U_1013:;
        ATOM1 = 32768 + 1;
        ATOM2 = 0;

        //  1338        pos1 = pos %IF pos-pos1 > 2

        if ((POS - POS1) <= (2)) goto L_00C5;
        POS1 = POS;
      L_00C5:;

      //  1339        %RETURN

        _imp_return;

        //  1340
        //  1341          !take care with strings and symbol constants.
        //  1342          !make sure the constant is valid here before sucking it in
        //  1343          !(and potentially loosing many lines)
        //  1344
        //  1345  symbols:atom1 = var;  atom2 = const;  type = integer

      U_1012:;
        ATOM1 = 91;
        ATOM2 = 93;
        TYPE = 1;

        //  1346          map gg = const;  protection = prot

        MAPGG = 93;
        PROTECTION = 256;

        //  1347          subatom = lp;  abandon(3) %IF lp >= lit max

        SUBATOM = LP;
        if ((LP) < (50)) goto L_00C6;
        ABANDON(3);
      L_00C6:;

      //  1348          quote = \pend quote

        QUOTE = (~PENDQUOTE);

        //  1349          %RETURN

        _imp_return;

        //  1350
        //  1351        !an integer constant is acceptable so get it in and
        //  1352        !get the next atom
        //  1353
        //  1354  chars:n = 0;  cont = cquote

      U_1014:;
        N = 0;
        CONT = 39;

        //  1355        %CYCLE

      L_00C7:;

      //  1356           read sym

        READSYM();

        //  1357           %IF sym = cquote %START

        if ((SYM) != (39)) goto L_00C8;

          //  1358              %EXIT %IF current char # cquote

        if ((*CURRENTCHAR) == (39)) goto L_00C9;
        goto L_00CA;
      L_00C9:;

      //  1359              read sym

        READSYM();

        //  1360           %FINISH

      L_00C8:;

      //  1361           %IF n&(\((-1)>>byte size)) # 0 %START; ! overflow

        if ((N & ~((unsigned int)(-1) >> 8)) == (0)) goto L_00CB;

          //  1362              pos1 = pos;  atom1 = error+10;  %RETURN

        POS1 = POS;
        ATOM1 = 32768 + 10;
        _imp_return;

        //  1363           %FINISH

      L_00CB:;

      //  1364           ->err %IF quote = 0

        if ((QUOTE) != (0)) goto L_00CC;
        goto U_1013;
      L_00CC:;

      //  1365           n = n<<byte size+sym

        N = (((int)N) << (((int)8) & 31)) + SYM;

        //  1366           quote = quote+1

        QUOTE = QUOTE + 1;

        //  1367        %REPEAT

        goto L_00C7;
      L_00CA:;

      //  1368        quote = 0;  cont = ' '

        QUOTE = 0;
        CONT = 32;

        //  1369        readsym %IF sym # nl

        if ((SYM) == (10)) goto L_00CD;
        READSYM();
      L_00CD:;

      //  1370        lit pool(lp) = n;  lp = lp+1

        LITPOOL[LP] = N;
        LP = LP + 1;

        //  1371        ->top

        goto U_100D;

        //  1372
        //  1373          !sniff the grammar before getting the string
        //  1374
        //  1375  strings:atom1 = var;  atom2 = const;  type = stringv

      U_1011:;
        ATOM1 = 91;
        ATOM2 = 93;
        TYPE = 3;

        //  1376          subatom = (strp-stbase)!16_4000

        SUBATOM = STRP - STBASE | 16384;

        //  1377          map gg = const;  protection = prot

        MAPGG = 93;
        PROTECTION = 256;

        //  1378          quote = subatom

        QUOTE = SUBATOM;

        //  1379          text line = lines;                  !in case of errors

        TEXTLINE = LINES;

        //  1380          %RETURN

        _imp_return;

        //  1381
        //  1382        !a string constant is ok here, so pull it in and get
        //  1383        !the next atom
        //  1384
        //  1385  text: ->chars %IF quote < 0;                    !character consts

      U_1010:;
        if ((QUOTE) >= (0)) goto L_00CE;
        goto U_1014;
      L_00CE:;

      //  1386        l = strp; n = strp

        L = STRP;
        N = STRP;

        //  1387        j = addr(glink(gmin-1));                  !absolute limit

        J = ((_imp_address)(&GLINK[GMIN - 1]));

        //  1388        k = l+256;                                !string length limit

        K = L + 256;

        //  1389        k = j %IF j < k;                          !choose lower

        if ((J) >= (K)) goto L_00CF;
        K = J;
      L_00CF:;

      //  1390
      //  1391        %CYCLE

      L_00D0:;

      //  1392           cont = squote;  quote = 1

        CONT = 34;
        QUOTE = 1;

        //  1393           %CYCLE

      L_00D1:;

      //  1394              read sym

        READSYM();

        //  1395              %IF sym = squote %START;               !terminator?

        if ((SYM) != (34)) goto L_00D2;

          //  1396                 %EXIT %IF current char # squote;      !yes ->

        if ((*CURRENTCHAR) == (34)) goto L_00D3;
        goto L_00D4;
      L_00D3:;

      //  1397                 read sym;                           ! skip quote

        READSYM();

        //  1398              %FINISH

      L_00D2:;

      //  1399              l = l+1;  byteinteger(l) = sym

        L = L + 1;
        *_imp_BYTEINTEGER(L) = SYM;

        //  1400              lines = text line %AND abandon(7) %IF l >= k;    !too many chars

        if ((L) < (K)) goto L_00D5;
        LINES = TEXTLINE;
        ABANDON(7);
      L_00D5:;

      //  1401           %REPEAT

        goto L_00D1;
      L_00D4:;

      //  1402           byteinteger(n) = l-n;               !plug in length

        *_imp_BYTEINTEGER(N) = L - N;

        //  1403
        //  1404           strp = l+1;                               !ready for next string

        STRP = L + 1;

        //  1405           quote = 0;  cont = ' ';  read sym

        QUOTE = 0;
        CONT = 32;
        READSYM();

        //  1406           code atom(target)

        CODEATOM(TARGET);

        //  1407           %RETURN %UNLESS atom1 = 48 %AND sym = squote;    !fold "???"."+++"

        if ((ATOM1) != (48)) goto L_00D6;
        if ((SYM) == (34)) goto L_00D7;
      L_00D6:;
        _imp_return;
      L_00D7:;

      //  1408        %REPEAT

        goto L_00D0;

        //  1409
        //  1410        %ROUTINE get(%INTEGER limit)

        void GET(int LIMIT) {
          _imp_enter(GET);

          //  1411           %INTEGER s, shift

          int S = 0xFEFEFEFE;
          int SHIFT = 0xFEFEFEFE;

          //  1412           shift = 0

          SHIFT = 0;

          //  1413           %IF base # 10 %START

          if ((BASE) == (10)) goto L_00D8;

            //  1414              %IF base = 16 %START

          if ((BASE) != (16)) goto L_00D9;

            //  1415                 shift = 4

          SHIFT = 4;

          //  1416              %FINISH %ELSE %START

          goto L_00DA;
        L_00D9:;

        //  1417                 %IF base = 8 %START

          if ((BASE) != (8)) goto L_00DB;

            //  1418                    shift = 3

          SHIFT = 3;

          //  1419                 %FINISH %ELSE %START

          goto L_00DC;
        L_00DB:;

        //  1420                    %IF base = 2 %START

          if ((BASE) != (2)) goto L_00DD;

            //  1421                       shift = 1

          SHIFT = 1;

          //  1422                    %FINISH

        L_00DD:;

        //  1423                 %FINISH

        L_00DC:;

        //  1424              %FINISH

        L_00DA:;

        //  1425           %FINISH

        L_00D8:;

        //  1426           n = 0

          N = 0;

          //  1427           %CYCLE

        L_00DE:;

        //  1428              %IF symtype = -1 %START;            !digit

          if ((SYMTYPE) != (-1)) goto L_00DF;

            //  1429                 s = sym-'0'

          S = SYM - 48;

          //  1430              %FINISH %ELSE %START

          goto L_00E0;
        L_00DF:;

        //  1431                 %IF symtype < 0 %START;                  !letter

          if ((SYMTYPE) >= (0)) goto L_00E1;

            //  1432                    s = sym-'A'+10

          S = SYM - 65 + 10;

          //  1433                 %FINISH %ELSE %START

          goto L_00E2;
        L_00E1:;

        //  1434                    %RETURN

          _imp_return;

          //  1435                 %FINISH

        L_00E2:;

        //  1436              %FINISH

        L_00E0:;

        //  1437              %RETURN %IF s >= limit

          if ((S) < (LIMIT)) goto L_00E3;
          _imp_return;
        L_00E3:;

        //  1438              pt = pt+1;  byteinteger(pt) = sym

          PT = PT + 1;
          *_imp_BYTEINTEGER(PT) = SYM;

          //  1439              %IF base = 10 %START;            !check overflow

          if ((BASE) != (10)) goto L_00E4;

            //  1440                 %IF n >= max int %AND (s > max dig %OR n > max int) %START

          if ((N) < (214748364)) goto L_00E5;
          if ((S) > (7)) goto L_00E6;
          if ((N) <= (214748364)) goto L_00E5;
        L_00E6:;

        //  1441
        //  1442                    !too big for an integer,
        //  1443                    !so call it a real
        //  1444
        //  1445                    base = 0;  type = real;  n = 0

          BASE = 0;
          TYPE = 2;
          N = 0;

          //  1446                 %FINISH

        L_00E5:;

        //  1447              %FINISH

        L_00E4:;

        //  1448              %IF shift = 0 %START

          if ((SHIFT) != (0)) goto L_00E7;

            //  1449                 n = n*base+s

          N = N * BASE + S;

          //  1450              %FINISH %ELSE %START

          goto L_00E8;
        L_00E7:;

        //  1451                 n = n<<shift+s

          N = (((int)N) << (((int)SHIFT) & 31)) + S;

          //  1452              %FINISH

        L_00E8:;

        //  1453              read sym

          READSYM();

          //  1454           %REPEAT

          goto L_00DE;

          //  1455        %END

          _imp_begin_backtrace(GET);
          _imp_diagf("\n\nArguments:\n\n");
          _imp_diagf("LIMIT = %d\n", LIMIT);
          _imp_diagf("\nLocal Variables:\n\n");
          _imp_bt_int(S);
          _imp_bt_int(SHIFT);
          _imp_end_backtrace();
        } /* end of GET */

        //  1456
        //  1457  number:base = 10

      U_100F:;
        BASE = 10;

        //  1458  bxk:   atom1 = var;  atom2 = const;  type = integer;  subatom = lp

      U_100C:;
        ATOM1 = 91;
        ATOM2 = 93;
        TYPE = 1;
        SUBATOM = LP;

        //  1459         map gg = const;  protection = prot

        MAPGG = 93;
        PROTECTION = 256;

        //  1460         abandon(3) %IF lp >= lit max

        if ((LP) < (50)) goto L_00E9;
        ABANDON(3);
      L_00E9:;

      //  1461         pt = strp;  mul = 0

        PT = STRP;
        MUL = 0;

        //  1462         %CYCLE

      L_00EA:;

      //  1463            get(base)

        GET(BASE);

        //  1464            %EXIT %UNLESS sym = '_' %AND base # 0 %AND pend quote = 0;    !change of base

        if ((SYM) != (95)) goto L_00EB;
        if ((BASE) == (0)) goto L_00EB;
        if ((PENDQUOTE) == (0)) goto L_00EC;
      L_00EB:;
        goto L_00ED;
      L_00EC:;

      //  1465            read sym

        READSYM();

        //  1466            base = n

        BASE = N;

        //  1467         %REPEAT

        goto L_00EA;
      L_00ED:;

      //  1468
      //  1469         %IF pend quote # 0 %START

        if ((PENDQUOTE) == (0)) goto L_00EE;

          //  1470            ->err %IF sym # cquote

        if ((SYM) == (39)) goto L_00EF;
        goto U_1013;
      L_00EF:;

      //  1471            readsym

        READSYM();

        //  1472         %FINISH

      L_00EE:;

      //  1473         %IF sym = '.' %START;                        !a real constant

        if ((SYM) != (46)) goto L_00F0;

          //  1474            pt = pt+1;  byteinteger(pt) = '.'

        PT = PT + 1;
        *_imp_BYTEINTEGER(PT) = 46;

        //  1475            read sym

        READSYM();

        //  1476            type = real;  base = 0;  get(10)

        TYPE = 2;
        BASE = 0;
        GET(10);

        //  1477         %FINISH

      L_00F0:;

      //  1478         %IF sym = '@' %START;                        !an exponent

        if ((SYM) != (64)) goto L_00F1;

          //  1479            pt = pt+1;  byteinteger(pt) = '@';  k = pt

        PT = PT + 1;
        *_imp_BYTEINTEGER(PT) = 64;
        K = PT;

        //  1480            readsym

        READSYM();

        //  1481            type = integer;  base = 10

        TYPE = 1;
        BASE = 10;

        //  1482            %IF sym = '-' %START

        if ((SYM) != (45)) goto L_00F2;

          //  1483               read sym;  get(10);  n = -n

        READSYM();
        GET(10);
        N = -N;

        //  1484            %FINISH %ELSE %START

        goto L_00F3;
      L_00F2:;

      //  1485               get(10)

        GET(10);

        //  1486            %FINISH

      L_00F3:;

      //  1487            pt = k+1;  byteinteger(pt) = lp;  litpool(lp) = n;  lp = lp+1

        PT = K + 1;
        *_imp_BYTEINTEGER(PT) = LP;
        LITPOOL[LP] = N;
        LP = LP + 1;

        //  1488            atom1 = error+10 %IF base = 0

        if ((BASE) != (0)) goto L_00F4;
        ATOM1 = 32768 + 10;
      L_00F4:;

      //  1489            type = real;                              !exponents force the type

        TYPE = 2;

        //  1490         %FINISH

      L_00F1:;

      //  1491
      //  1492         %IF type = real %START

        if ((TYPE) != (2)) goto L_00F5;

          //  1493            byteinteger(strp) = pt-strp

        *_imp_BYTEINTEGER(STRP) = PT - STRP;

        //  1494            subatom = (strp-stbase)!16_2000;  strp = pt+1

        SUBATOM = STRP - STBASE | 8192;
        STRP = PT + 1;

        //  1495         %FINISH %ELSE %START

        goto L_00F6;
      L_00F5:;

      //  1496            litpool(lp) = n

        LITPOOL[LP] = N;

        //  1497            lp = lp+1

        LP = LP + 1;

        //  1498         %FINISH

      L_00F6:;

      //  1499         %RETURN

        _imp_return;

        //  1500
        //  1501  name: atom1 = 0 %AND %RETURN %IF 27 <= target <= 41

      U_100E:;
        {
          int tmp;
          if ((27) > (tmp = TARGET)) goto L_00F7;
          // Double-sided test on TARGET (Part II)
          if (tmp > (41)) goto L_00F7;
        }
        ATOM1 = 0;
        _imp_return;
      L_00F7:;

      //  1502        hash value = 0

        HASHVALUE = 0;

        //  1503
        //  1504        !*****************************
        //  1505        !*machine dependent for speed*
        //  1506        !*****************************
        //  1507
        //  1508        dp = dmax+1

        DP = DMAX + 1;

        //  1509        da = addr(dict(dp));  dbase = da

        DA = ((_imp_address)(&DICT[DP - 1]));
        DBASE = DA;

        //  1510        %CYCLE

      L_00F8:;

      //  1511           hash value = hash value+(hash value+sym);        !is this good enough?

        HASHVALUE = HASHVALUE + (HASHVALUE + SYM);

        //  1512           da = da+1;  byteinteger(da) = sym

        DA = DA + 1;
        *_imp_BYTEINTEGER(DA) = SYM;

        //  1513           read sym

        READSYM();

        //  1514           %EXIT %IF symtype >= 0

        if ((SYMTYPE) < (0)) goto L_00F9;
        goto L_00FA;
      L_00F9:;

      //  1515        %REPEAT

        goto L_00F8;
      L_00FA:;

      //  1516        %IF sym = cquote %START

        if ((SYM) != (39)) goto L_00FB;

          //  1517           pend quote = 100

        PENDQUOTE = 100;

        //  1518           ->symbols %IF hash value = 'M'

        if ((HASHVALUE) != (77)) goto L_00FC;
        goto U_1012;
      L_00FC:;

      //  1519           read sym

        READSYM();

        //  1520           %IF hash value = 'X' %THEN base = 16 %AND ->bxk

        if ((HASHVALUE) != (88)) goto L_00FD;
        BASE = 16;
        goto U_100C;
      L_00FD:;

      //  1521           %IF hash value = 'K' %C

        if ((HASHVALUE) == (75)) goto L_00FE;
        if ((HASHVALUE) != (79)) goto L_00FF;
      L_00FE:;
        BASE = 8;
        goto U_100C;
      L_00FF:;

      //  1522+          %OR hash value = 'O' %THEN base = 8 %AND ->bxk
      //  1523           %IF hash value = 'B' %THEN base = 2 %AND ->bxk

        if ((HASHVALUE) != (66)) goto L_0100;
        BASE = 2;
        goto U_100C;
      L_0100:;

      //  1524           ->err

        goto U_1013;

        //  1525        %FINISH

      L_00FB:;

      //  1526        n = da-dbase

        N = DA - DBASE;

        //  1527        byteinteger(dbase) = n

        *_imp_BYTEINTEGER(DBASE) = N;

        //  1528        dp = dp+(n+2)>>1

        DP = DP + ((unsigned int)N + 2 >> 1);

        //  1529        abandon(8) %IF dp >= dmin

        if ((DP) < (DMIN)) goto L_0101;
        ABANDON(8);
      L_0101:;

      //  1530
      //  1531        atom2 = 90;                  !ident

        ATOM2 = 90;

        //  1532        %IF last1 = 0 %AND sym = ':' %START;           !label

        if ((LAST1) != (0)) goto L_0102;
        if ((SYM) != (58)) goto L_0102;

          //  1533           limit = local;  lookup(lab);  %RETURN

        LIMIT = LOCAL;
        LOOKUP(3);
        _imp_return;

        //  1534        %FINISH

      L_0102:;

      //  1535        %IF last1 = jump %START;                 !->label

        if ((LAST1) != (54)) goto L_0103;

          //  1536           limit = local;  lookup(lab+spec+used bit);  %RETURN

        LIMIT = LOCAL;
        LOOKUP(3 + 128 + 32768);
        _imp_return;

        //  1537        %FINISH

      L_0103:;

      //  1538        %IF decl # 0 %AND target = 90 %START;    !identifier

        if ((DECL) == (0)) goto L_0104;
        if ((TARGET) != (90)) goto L_0104;

          //  1539           search base = fm base

        SEARCHBASE = FMBASE;

        //  1540           limit = local;  lookup(decl)

        LIMIT = LOCAL;
        LOOKUP(DECL);

        //  1541           search base = 0

        SEARCHBASE = 0;

        //  1542        %FINISH %ELSE %START

        goto L_0105;
      L_0104:;

      //  1543           limit = 0;  lookup(0)

        LIMIT = 0;
        LOOKUP(0);

        //  1544        %FINISH

      L_0105:;

      //  1545     %END

        _imp_return;
        _imp_begin_backtrace(CODEATOM);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("TARGET = %d\n", TARGET);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_bt_int(DBASE);
        _imp_bt_int(DA);
        _imp_bt_int(BASE);
        _imp_bt_int(N);
        _imp_bt_int(MUL);
        _imp_bt_int(PENDQUOTE);
        _imp_bt_int(J);
        _imp_bt_int(K);
        _imp_bt_int(L);
        _imp_bt_int(PT);
        _imp_end_backtrace();
      } /* end of CODEATOM */

      //  1546
      //  1547     %INTEGERFN parsed machine code

      int PARSEDMACHINECODE(void) {
        _imp_enter(PARSEDMACHINECODE);

        //  1548        !   *opcode_??????????
        //  1549        %routine octal(%integer n)

        void OCTAL(int N) {
          _imp_enter(OCTAL);

          //  1550           %integer m

          int M = 0xFEFEFEFE;

          //  1551           m = n>>3

          M = (unsigned int)N >> 3;

          //  1552           octal(m) %if m # 0

          if ((M) == (0)) goto L_0106;
          OCTAL(M);
        L_0106:;

        //  1553           put(n&7+'0')

          PUT((N & 7) + 48);

          //  1554        %end

          _imp_return;
          _imp_begin_backtrace(OCTAL);
          _imp_diagf("\n\nArguments:\n\n");
          _imp_diagf("N = %d\n", N);
          _imp_diagf("\nLocal Variables:\n\n");
          _imp_bt_int(M);
          _imp_end_backtrace();
        } /* end of OCTAL */

        //  1555        atom1 = error %AND %RESULT=0 %UNLESS symtype = -2;  !starts with letter

        if ((SYMTYPE) == (-2)) goto L_0107;
        ATOM1 = 32768;
        _imp_result(0);
      L_0107:;

      //  1556        put('w')

        PUT(119);

        //  1557        %CYCLE

      L_0108:;

      //  1558           put(sym)

        PUT(SYM);

        //  1559           read sym

        READSYM();

        //  1560           %EXIT %IF symtype >= 0;           !pull in letters and digits

        if ((SYMTYPE) < (0)) goto L_0109;
        goto L_010A;
      L_0109:;

      //  1561        %REPEAT

        goto L_0108;
      L_010A:;

      //  1562        put('_')

        PUT(95);

        //  1563        %IF symtype # 0 %START;                !not terminator

        if ((SYMTYPE) == (0)) goto L_010B;

          //  1564           atom1 = error %AND %result=0 %UNLESS sym = '_'

        if ((SYM) == (95)) goto L_010C;
        ATOM1 = 32768;
        _imp_result(0);
      L_010C:;

      //  1565           read sym

        READSYM();

        //  1566           %WHILE symtype # 0 %CYCLE

      L_010D:;
        if ((SYMTYPE) == (0)) goto L_010E;

          //  1567              %IF symtype < 0 %START;             !complex

        if ((SYMTYPE) >= (0)) goto L_010F;

          //  1568                 code atom(0);  %result=0 %IF atom1&error # 0

        CODEATOM(0);
        if ((ATOM1 & 32768) == (0)) goto L_0110;
        _imp_result(0);
      L_0110:;

      //  1569                 %IF atom2 = const %AND type = integer %START

        if ((ATOM2) != (93)) goto L_0111;
        if ((TYPE) != (1)) goto L_0111;

          //  1570                    %IF subatom < 0 %THEN octal(tag(-subatom)_format) %C

        if ((SUBATOM) >= (0)) goto L_0112;
        OCTAL(TAG[-SUBATOM].FORMAT);
        goto L_0113;
      L_0112:;
        OCTAL(LITPOOL[SUBATOM]);
      L_0113:;

      //  1571+                                   %ELSE octal(litpool(subatom))
      //  1572                 %FINISH %ELSE %START

        goto L_0114;
      L_0111:;

      //  1573                    %IF 91 <= atom1 <= 109 %START

        {
          int tmp;
          if ((91) > (tmp = ATOM1)) goto L_0115;
          // Double-sided test on ATOM1 (Part II)
          if (tmp > (109)) goto L_0115;
        }

        //  1574                       put(' '); octal(tag(subatom)_index)

        PUT(32);
        OCTAL(TAG[SUBATOM].INDEX);

        //  1575                    %FINISH %ELSE %START

        goto L_0116;
      L_0115:;

      //  1576                       atom1 = error;  %result=0

        ATOM1 = 32768;
        _imp_result(0);

        //  1577                    %FINISH

      L_0116:;

      //  1578                 %FINISH

      L_0114:;

      //  1579              %FINISH %ELSE %START

        goto L_0117;
      L_010F:;

      //  1580                 put(sym);  read sym

        PUT(SYM);
        READSYM();

        //  1581              %FINISH

      L_0117:;

      //  1582           %REPEAT

        goto L_010D;
      L_010E:;

      //  1583        %FINISH

      L_010B:;

      //  1584        put(';')

        PUT(59);

        //  1585        %RESULT=1

        _imp_result(1);

        //  1586     %END

        _imp_begin_backtrace(PARSEDMACHINECODE);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of PARSEDMACHINECODE */

      //  1587
      //  1588     cont = ' ' %IF gg = 0

      if ((GG) != (0)) goto L_0118;
      CONT = 32;
    L_0118:;

    //  1589     last1 = 0;  mapgg = 0

      LAST1 = 0;
      MAPGG = 0;

      //  1590     s = 0;  ss = 0;  sstype = -1; fdef = 0

      S = 0;
      SS = 0;
      SSTYPE = -1;
      FDEF = 0;

      //  1591     fm base = 0

      FMBASE = 0;

      //  1592     app = 0

      APP = 0;

      //  1593
      //  1594     !deal with alignment following an error in one statement
      //  1595     !of several on a line
      //  1596
      //  1597     margin = column;                         !start of statement

      MARGIN = COLUMN;

      //  1598
      //  1599     pos = 0

      POS = 0;

      //  1600     stbase = addr(glink(gmax+1));  strp = stbase;  lp = 0

      STBASE = ((_imp_address)(&GLINK[GMAX + 1]));
      STRP = STBASE;
      LP = 0;

      //  1601     tbase = tstart;               !??????????????

      TBASE = TSTART;

      //  1602     local = tbase

      LOCAL = TBASE;

      //  1603
      //  1604     %IF gg = 0 %or ocount >= 0 %START;            !data or not continuation(z)

      if ((GG) == (0)) goto L_0119;
      if ((OCOUNT) < (0)) goto L_011A;
    L_0119:;

    //  1605  again:%WHILE sym type = 0 %CYCLE;                !skip redundant terminators

    U_1006:;
    L_011B:;
      if ((SYMTYPE) != (0)) goto L_011C;

        //  1606           c = cont

      C = CONT;

      //  1607           cont = ' ';  cont = '+' %IF ocount >= 0

      CONT = 32;
      if ((OCOUNT) < (0)) goto L_011D;
      CONT = 43;
    L_011D:;

    //  1608           read sym

      READSYM();

      //  1609           cont = c

      CONT = C;

      //  1610        %REPEAT

      goto L_011B;
    L_011C:;

    //  1611        ->skip %IF sym = '!';                      !comment

      if ((SYM) != (33)) goto L_011E;
      goto U_1007;
    L_011E:;

    //  1612        this = -1

      THIS = -1;

      //  1613        code atom(0)

      CODEATOM(0);

      //  1614        %IF atom1 = comment %START

      if ((ATOM1) != (22)) goto L_011F;

        //  1615  skip:    quote = 1

    U_1007:;
      QUOTE = 1;

      //  1616           c = cont

      C = CONT;

      //  1617           read sym %AND cont = c %WHILE sym # nl; !skip to end of line

    L_0120:;
      if ((SYM) == (10)) goto L_0121;
      READSYM();
      CONT = C;
      goto L_0120;
    L_0121:;

    //  1618           quote = 0;  symtype = 0

      QUOTE = 0;
      SYMTYPE = 0;

      //  1619           ->again

      goto U_1006;

      //  1620        %FINISH

    L_011F:;

    //  1621     %FINISH

    L_011A:;

    //  1622     decl = 0;  mark = 0

      DECL = 0;
      MARK = 0;

      //  1623     gentype = 0;  force = 0

      GENTYPE = 0;
      FORCE = 0;

      //  1624     dim = 0;  prot err = 0

      DIM = 0;
      PROTERR = 0;

      //  1625     node = 0;  nmax = 0;  nmin = rec size+1

      NODE = 0;
      NMAX = 0;
      NMIN = 260 + 1;

      //  1626     order = 1;  gmin = max grammar+1

      ORDER = 1;
      GMIN = 1800 + 1;

      //  1627     sstype = 0 %AND ->more %IF gg # 0;             !continuation

      if ((GG) == (0)) goto L_0122;
      SSTYPE = 0;
      goto U_1008;
    L_0122:;

    //  1628     ptype = 0;  spec given = 0

      PTYPE = 0;
      SPECGIVEN = 0;

      //  1629
      //  1630     stats = stats+1;  op('O', lines) %IF perm = 0

      STATS = STATS + 1;
      if ((PERM) != (0)) goto L_0123;
      OP(79, LINES);
    L_0123:;

    //  1631
    //  1632     ->fail1 %IF atom1&error # 0;                  !first atom faulty

      if ((ATOM1 & 32768) == (0)) goto L_0124;
      goto U_1009;
    L_0124:;

    //  1633
    //  1634     %IF escape class # 0 %START;                  !enter the hard way after

      if ((ESCAPECLASS) == (0)) goto L_0125;

        //  1635        g = imp phrase;  sstype = -1;  ->a3

      G = 24;
      SSTYPE = -1;
      goto U_100A;

      //  1636     %FINISH

    L_0125:;

    //  1637
    //  1638     g = initial(atom1);                           !pick up entry point

      G = INITIAL[ATOM1];

      //  1639     %IF g = 0 %START;                             !invalid first atom

      if ((G) != (0)) goto L_0126;

        //  1640        g = initial(0);  sstype = 0;  ->a3;        !declarator?

      G = INITIAL[0];
      SSTYPE = 0;
      goto U_100A;

      //  1641     %FINISH

    L_0126:;

    //  1642     %IF g < 0 %START;                             !phrase imp

      if ((G) >= (0)) goto L_0127;

        //  1643        g = g&255

      G = G & 255;

      //  1644        nmax = 1

      NMAX = 1;

      //  1645        ar(1)_class = 0;  ar(1)_link = 0;  ar(1)_sub = imp phrase

      AR[0].CLASS = 0;
      AR[0].LINK = 0;
      AR[0].SUB = 24;

      //  1646     %FINISH

    L_0127:;

    //  1647
    //  1648     gg = gram(g);  class = gg&255;  sstype = gg>>12&3-1

      GG = GRAM[G];
      CLASS = GG & 255;
      SSTYPE = ((unsigned int)GG >> 12 & 3) - 1;

      //  1649     ->a1

      goto U_1015;

      //  1650
      //  1651  act(194): ptype = type;  papp = app;  pformat = format;  ->more

    case_ACT_194:;
      PTYPE = TYPE;
      PAPP = APP;
      PFORMAT = FORMAT;
      goto U_1008;

      //  1652  act(196):k =g+1;  ->a610

    case_ACT_196:;
      K = G + 1;
      goto U_1016;

      //  1653  act(188):k = ar(nmax)_sub+1

    case_ACT_188:;
      K = AR[NMAX - 1].SUB + 1;

      //  1654  a610:     papp = glink(k)

    U_1016:;
      PAPP = GLINK[K];

      //  1655            k = gram(k)

      K = GRAM[K];

      //  1656            ->more %IF k = 0;                        !%NAME

      if ((K) != (0)) goto L_0129;
      goto U_1008;
    L_0129:;

    //  1657            ptype = k&7;  pformat = k>>3

      PTYPE = K & 7;
      PFORMAT = (unsigned int)K >> 3;

      //  1658  act(183):k = type;  gentype = k %IF gentype = 0 %OR k = real

    case_ACT_183:;
      K = TYPE;
      if ((GENTYPE) == (0)) goto L_012A;
      if ((K) != (2)) goto L_012B;
    L_012A:;
      GENTYPE = K;
    L_012B:;

    //  1659            %IF pformat < 0 %START;               !general type

      if ((PFORMAT) >= (0)) goto L_012C;

        //  1660               app = papp;  format = pformat

      APP = PAPP;
      FORMAT = PFORMAT;

      //  1661               k = real %IF ptype = real %AND type = integer

      if ((PTYPE) != (2)) goto L_012D;
      if ((TYPE) != (1)) goto L_012D;
      K = 2;
    L_012D:;

    //  1662               k = force %AND force = 0 %IF force # 0

      if ((FORCE) == (0)) goto L_012E;
      K = FORCE;
      FORCE = 0;
    L_012E:;

    //  1663            %FINISH

    L_012C:;

    //  1664            ->fail2 %UNLESS papp = app %AND (ptype = k %OR ptype = 0)

      if ((PAPP) != (APP)) goto L_012F;
      if ((PTYPE) == (K)) goto L_0130;
      if ((PTYPE) == (0)) goto L_0130;
    L_012F:;
      goto U_1017;
    L_0130:;

    //  1665            ->more %IF pformat=format %OR pformat = 0 %OR format = 0

      if ((PFORMAT) == (FORMAT)) goto L_0131;
      if ((PFORMAT) == (0)) goto L_0131;
      if ((FORMAT) != (0)) goto L_0132;
    L_0131:;
      goto U_1008;
    L_0132:;

    //  1666            ->fail2

      goto U_1017;

      //  1667  act(197):arp == ar(nmin)

    case_ACT_197:;
      ARP = (struct ARFM *)&AR[NMIN - 1];
      //  1668           k = arp_sub

      K = ARP->SUB;

      //  1669           ->fail3 %UNLESS block form = k&15

      if ((BLOCKFORM) == (K & 15)) goto L_0133;
      goto U_1018;
    L_0133:;

    //  1670           arp_sub = k>>4

      ARP->SUB = (unsigned int)K >> 4;

      //  1671
      //  1672           type = block type

      TYPE = BLOCKTYPE;

      //  1673           ptype = block type;  pformat = block fm;  papp = app

      PTYPE = BLOCKTYPE;
      PFORMAT = BLOCKFM;
      PAPP = APP;

      //  1674           pformat = -1 %IF ptype # record

      if ((PTYPE) == (4)) goto L_0134;
      PFORMAT = -1;
    L_0134:;

    //  1675           ->more

      goto U_1008;

      //  1676  act(195):arp == ar(nmin)

    case_ACT_195:;
      ARP = (struct ARFM *)&AR[NMIN - 1];
      //  1677           k = arp_sub

      K = ARP->SUB;

      //  1678           arp_sub = k>>2

      ARP->SUB = (unsigned int)K >> 2;

      //  1679           k = k&3

      K = K & 3;

      //  1680                                                        !1 = check integer
      //  1681                                                        !2 = check real
      //  1682                                                        !3 = check real + int
      //  1683            ->more %IF k = 0;                             !no action

      if ((K) != (0)) goto L_0135;
      goto U_1008;
    L_0135:;

    //  1684            %IF k = 1 %START

      if ((K) != (1)) goto L_0136;

        //  1685               force = integer

      FORCE = 1;

      //  1686               ->more %IF type = integer %OR type = 0

      if ((TYPE) == (1)) goto L_0137;
      if ((TYPE) != (0)) goto L_0138;
    L_0137:;
      goto U_1008;
    L_0138:;

    //  1687               ->fail2

      goto U_1017;

      //  1688            %FINISH

    L_0136:;

    //  1689            ->fail2 %UNLESS ptype = real %or ptype = 0

      if ((PTYPE) == (2)) goto L_0139;
      if ((PTYPE) == (0)) goto L_0139;
      goto U_1017;
    L_0139:;

    //  1690            force = integer %IF k = 3

      if ((K) != (3)) goto L_013A;
      FORCE = 1;
    L_013A:;

    //  1691            ->more

      goto U_1008;

      //  1692  act(198):!%OTHER

    case_ACT_198:;

    //  1693           k = gg>>8&15

      K = (unsigned int)GG >> 8 & 15;

      //  1694           %IF k = 0 %START;      !restore atom

      if ((K) != (0)) goto L_013B;

        //  1695              atom1 = last1

      ATOM1 = LAST1;

      //  1696              ->more

      goto U_1008;

      //  1697           %FINISH

    L_013B:;

    //  1698           %IF k = 1 %START;      !test string

      if ((K) != (1)) goto L_013C;

        //  1699              ->fail2 %UNLESS type = stringv

      if ((TYPE) == (3)) goto L_013D;
      goto U_1017;
    L_013D:;

    //  1700              ->more

      goto U_1008;

      //  1701           %FINISH

    L_013C:;

    //  1702           %if k = 2 %start

      if ((K) != (2)) goto L_013E;

        //  1703              ->fail2 %if type = record

      if ((TYPE) != (4)) goto L_013F;
      goto U_1017;
    L_013F:;

    //  1704              -> more

      goto U_1008;

      //  1705           %finish

    L_013E:;

    //  1706           %if k = 3 %start;         !check OWN variable coming

      if ((K) != (3)) goto L_0140;

        //  1707              code atom(0)

      CODEATOM(0);

      //  1708              ->A7 %if atom flags&own bit = 0

      if ((ATOMFLAGS & 512) != (0)) goto L_0141;
      goto U_1019;
    L_0141:;

    //  1709              ->more

      goto U_1008;

      //  1710           %finish

    L_0140:;

    //  1711           for warn = pos1 %IF x <= local;      !%FORTEST

      if ((X) > (LOCAL)) goto L_0142;
      FORWARN = POS1;
    L_0142:;

    //  1712           ->more

      goto U_1008;

      //  1713  paction(1):%IF type = record %THEN g = phrase(242) %ELSE pformat = -1

    case_PACTION_1:;
      if ((TYPE) != (4)) goto L_0144;
      G = PHRASE[42];
      goto L_0145;
    L_0144:;
      PFORMAT = -1;
    L_0145:;

    //  1714                                                 ->a3

      goto U_100A;

      //  1715  paction(2):ptype = real;     pformat = -1;     ->a3

    case_PACTION_2:;
      PTYPE = 2;
      PFORMAT = -1;
      goto U_100A;

      //  1716  paction(3):ptype = stringv;  pformat = -1;     ->a3

    case_PACTION_3:;
      PTYPE = 3;
      PFORMAT = -1;
      goto U_100A;

      //  1717  paction(4):ptype = integer;  pformat = -1;     ->a3

    case_PACTION_4:;
      PTYPE = 1;
      PFORMAT = -1;
      goto U_100A;

      //  1718  paction(5):->a3 %if ptype = integer

    case_PACTION_5:;
      if ((PTYPE) != (1)) goto L_0146;
      goto U_100A;
    L_0146:;

    //  1719             g = phrase(212) %AND pformat=-1 %IF ptype = real

      if ((PTYPE) != (2)) goto L_0147;
      G = PHRASE[12];
      PFORMAT = -1;
    L_0147:;

    //  1720             g = phrase(213) %IF ptype = stringv

      if ((PTYPE) != (3)) goto L_0148;
      G = PHRASE[13];
    L_0148:;

    //  1721             ->a3

      goto U_100A;

      //  1722  paction(6):ptype = gram(ar(nmax)_sub+1)&7;  pformat = -1;  ->a3

    case_PACTION_6:;
      PTYPE = GRAM[AR[NMAX - 1].SUB + 1] & 7;
      PFORMAT = -1;
      goto U_100A;

      //  1723  paction(7):ptype=real %IF ptype = integer;  pformat=-1; ->a3

    case_PACTION_7:;
      if ((PTYPE) != (1)) goto L_0149;
      PTYPE = 2;
    L_0149:;
      PFORMAT = -1;
      goto U_100A;

      //  1724
      //  1725  a1:   last1 = class;  atom1 = 0;  s = subatom

    U_1015:;
      LAST1 = CLASS;
      ATOM1 = 0;
      S = SUBATOM;

      //  1726
      //  1727  a2:   %IF gg&trans bit = 0 %START;                !insert into analysis record

    U_101A:;
      if ((GG & 16384) != (0)) goto L_014A;

        //  1728           z == node

      Z = (int *)&NODE;
      //  1729           %CYCLE;                                  !insert cell in order

    L_014B:;

    //  1730              k = z

      K = *Z;

      //  1731              %EXIT %IF gg&order bits = 0 %OR k = 0

      if ((GG & 12288) == (0)) goto L_014C;
      if ((K) != (0)) goto L_014D;
    L_014C:;
      goto L_014E;
    L_014D:;

    //  1732              gg = gg-order bit;  z == ar(k)_link

      GG = GG - 4096;
      Z = (int *)&AR[K - 1].LINK;
      //  1733           %REPEAT

      goto L_014B;
    L_014E:;

    //  1734           gg = map gg %IF map gg # 0 %AND gg&255 = var

      if ((MAPGG) == (0)) goto L_014F;
      if ((GG & 255) != (91)) goto L_014F;
      GG = MAPGG;
    L_014F:;

    //  1735           nmin = nmin-1;  ->fail0 %IF nmin = nmax

      NMIN = NMIN - 1;
      if ((NMIN) != (NMAX)) goto L_0150;
      goto U_100D;
    L_0150:;

    //  1736           z = nmin

      *Z = NMIN;

      //  1737           arp == ar(nmin)

      ARP = (struct ARFM *)&AR[NMIN - 1];
      //  1738           arp_sub = s;  arp_class = (gg&255)!mark

      ARP->SUB = S;
      ARP->CLASS = GG & 255 | MARK;

      //  1739           arp_link = k

      ARP->LINK = K;

      //  1740        %FINISH

    L_014A:;

    //  1741        mark = 0;  map gg = 0

      MARK = 0;
      MAPGG = 0;

      //  1742
      //  1743  more: g = glink(g);                               !chain down the grammar

    U_1008:;
      G = GLINK[G];

      //  1744
      //  1745  paction(0):

    case_PACTION_0:;

    //  1746  a3:   gg = gram(g);  class = gg&255            ;! <------------------------------ gg set to -1...  THIS CAUSES MISSING SWITCH LABEL paction(15) BELOW

    U_100A:;
      GG = GRAM[G];
      CLASS = GG & 255;

      //  1747  debug("gg = gram(g) = -1 ... g=".itos(g,0)." gg=".itos(gg,0)) %if gg = -1

      if ((GG) != (-1)) goto L_0151;
      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s%S", "gg = gram(g) = -1 ... g=", _imp_strp(_imp_ITOS(G, 0)), " gg=", _imp_strp(_imp_ITOS(GG, 0))));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );
    L_0151:;

    //  1748        trace analysis %IF diag&1 # 0

      if ((DIAG & 1) == (0)) goto L_0152;
      TRACEANALYSIS();
    L_0152:;

    //  1749        ->a5 %IF class = 0;                         !end of phrase

      if ((CLASS) != (0)) goto L_0153;
      goto U_100E;
    L_0153:;

    //  1750
    //  1751        %IF class < actions %START;                 !not a phrase or an action

      if ((CLASS) >= (180)) goto L_0154;

        //  1752           class = atomic(class) %IF class >= figurative

      if ((CLASS) < (130)) goto L_0155;
      CLASS = ATOMIC[CLASS - 130];
    L_0155:;

    //  1753           ->a2 %IF class >= manifest

      if ((CLASS) < (120)) goto L_0156;
      goto U_101A;
    L_0156:;

    //  1754           code atom(class) %IF atom1 = 0

      if ((ATOM1) != (0)) goto L_0157;
      CODEATOM(CLASS);
    L_0157:;

    //  1755           %IF escape class # 0 %START;             !escape to new grammar

      if ((ESCAPECLASS) == (0)) goto L_0158;

        //  1756              class = escape class;  escape class = 0

      CLASS = ESCAPECLASS;
      ESCAPECLASS = 0;

      //  1757              g = g+escape

      G = G + 4096;

      //  1758
      //  1759              !note that following an escape the next item is
      //  1760              !forced to be transparent!
      //  1761
      //  1762  esc:        gg = 0

    U_100F:;
      GG = 0;

      //  1763              arp == ar(nmax+1)

      ARP = (struct ARFM *)&AR[NMAX + 1 - 1];
      //  1764              arp_papp = papp;  arp_x = x;  ->a4

      ARP->PAPP = PAPP;
      ARP->X = X;
      goto U_1010;

      //  1765           %FINISH

    L_0158:;

    //  1766
    //  1767           ->a1 %IF class = atom1 %OR class = atom2

      if ((CLASS) == (ATOM1)) goto L_0159;
      if ((CLASS) != (ATOM2)) goto L_015A;
    L_0159:;
      goto U_1015;
    L_015A:;

    //  1768
    //  1769  a7:      ->fail1 %IF gg >= 0;                     !no alternative

    U_1019:;
      if ((GG) < (0)) goto L_015B;
      goto U_1009;
    L_015B:;

    //  1770           g = g+1

      G = G + 1;

      //  1771           ->a3

      goto U_100A;

      //  1772        %FINISH

    L_0154:;

    //  1773
    //  1774        %IF class >= phrasal %START;                !a phrase

      if ((CLASS) < (200)) goto L_015C;

        //  1775  a4:      nmax = nmax+1;  ->fail0 %IF nmax = nmin

    U_1010:;
      NMAX = NMAX + 1;
      if ((NMAX) != (NMIN)) goto L_015D;
      goto U_100D;
    L_015D:;

    //  1776           arp == ar(nmax)

      ARP = (struct ARFM *)&AR[NMAX - 1];
      //  1777           arp_ptype = ptype

      ARP->PTYPE = PTYPE;

      //  1778           arp_pos = pos1

      ARP->POS = POS1;

      //  1779           arp_pformat = pformat

      ARP->PFORMAT = PFORMAT;

      //  1780           arp_link = gentype

      ARP->LINK = GENTYPE;

      //  1781           arp_class = node

      ARP->CLASS = NODE;

      //  1782           arp_sub = g

      ARP->SUB = G;

      //  1783           node = 0

      NODE = 0;

      //  1784           g = phrase(class)

      G = PHRASE[CLASS - 200];

      //  1785           ptype = force %AND force = 0 %IF force # 0

      if ((FORCE) == (0)) goto L_015E;
      PTYPE = FORCE;
      FORCE = 0;
    L_015E:;

    //  1786           gentype = 0

      GENTYPE = 0;

      //  1787           ->paction(gg>>8&15)                                                       ;! <----------------- CAUSES CRASH

      PACTION_line = __LINE__;
      PACTION_file = __FILE__;
      PACTION_index = (unsigned int)GG >> 8 & 15;
      goto case_PACTION_dispatch;

      //  1788  paction(*):debug("* Switch label not set: paction(".itos(gg>>8&15,0).") {gg=".itos(gg,0)."}"); %stop {avoid executing random code}

    case_PACTION_default:;
      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s%S%s", "* Switch label not set: paction(", _imp_strp(_imp_ITOS((unsigned int)GG >> 8 & 15, 0)), ") {gg=", _imp_strp(_imp_ITOS(GG, 0)), "}"));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );
      _imp_stop(0);

      //  1789        %FINISH

    L_015C:;

    //  1790
    //  1791        ->act(class);                               !only actions left

      ACT_line = __LINE__;
      ACT_file = __FILE__;
      ACT_index = CLASS;
      goto case_ACT_dispatch;

      //  1792  act(*):debug("* Switch label not set: act(".itos(class,0).")"); %stop

    case_ACT_default:;
      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "* Switch label not set: act(", _imp_strp(_imp_ITOS(CLASS, 0)), ")"));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );
      _imp_stop(0);

      //  1793  a5:   !reverse links

    U_100E:;

    //  1794
    //  1795        s = 0

      S = 0;

      //  1796        %WHILE node # 0 %CYCLE

    L_015F:;
      if ((NODE) == (0)) goto L_0160;

        //  1797           z == ar(node)_link

      Z = (int *)&AR[NODE - 1].LINK;
      //  1798           k = z;  z = s;  s = node;  node = k

      K = *Z;
      *Z = S;
      S = NODE;
      NODE = K;

      //  1799        %REPEAT

      goto L_015F;
    L_0160:;

    //  1800        ss = s

      SS = S;

      //  1801
      //  1802  a6:   %IF nmax # 0 %START

    U_1011:;
      if ((NMAX) == (0)) goto L_0161;

        //  1803           k = gentype;                             !type of phrase

      K = GENTYPE;

      //  1804           arp == ar(nmax);  nmax = nmax-1

      ARP = (struct ARFM *)&AR[NMAX - 1];
      NMAX = NMAX - 1;

      //  1805           node = arp_class

      NODE = ARP->CLASS;

      //  1806           gentype = arp_link

      GENTYPE = ARP->LINK;

      //  1807           ptype = arp_ptype

      PTYPE = ARP->PTYPE;

      //  1808           pformat = arp_pformat

      PFORMAT = ARP->PFORMAT;

      //  1809           g = arp_sub

      G = ARP->SUB;

      //  1810           %IF g&escape # 0 %START

      if ((G & 4096) == (0)) goto L_0162;

        //  1811              g = g-escape

      G = G - 4096;

      //  1812              papp = arp_papp

      PAPP = ARP->PAPP;

      //  1813              mark = 255

      MARK = 255;

      //  1814              subatom = s

      SUBATOM = S;

      //  1815              ->a3

      goto U_100A;

      //  1816           %FINISH

    L_0162:;

    //  1817           gentype = k %IF gentype = 0 %OR k = real

      if ((GENTYPE) == (0)) goto L_0163;
      if ((K) != (2)) goto L_0164;
    L_0163:;
      GENTYPE = K;
    L_0164:;

    //  1818           type = gen type

      TYPE = GENTYPE;

      //  1819
      //  1820           k = gg;                                  !exit-point code

      K = GG;

      //  1821           %CYCLE

    L_0165:;

    //  1822              gg = gram(g)

      GG = GRAM[G];

      //  1823              ->a2 %IF k = 0

      if ((K) != (0)) goto L_0166;
      goto U_101A;
    L_0166:;

    //  1824              ->fail1 %IF gg >= 0;                  !no alternative phrase

      if ((GG) < (0)) goto L_0167;
      goto U_1009;
    L_0167:;

    //  1825              k = k-order bit

      K = K - 4096;

      //  1826              g = g+1;                              !sideways step

      G = G + 1;

      //  1827           %REPEAT

      goto L_0165;

      //  1828
      //  1829        %FINISH

    L_0161:;

    //  1830
    //  1831        pos1 = copy %AND fault(4) %IF copy # 0

      if ((COPY) == (0)) goto L_0168;
      POS1 = COPY;
      FAULT(4);
    L_0168:;

    //  1832        fault(13) %IF order = 0

      if ((ORDER) != (0)) goto L_0169;
      FAULT(13);
    L_0169:;

    //  1833        fault(-4) %IF for warn # 0

      if ((FORWARN) == (0)) goto L_016A;
      FAULT(-4);
    L_016A:;

    //  1834        pos1 = 0

      POS1 = 0;

      //  1835        fault rate = fault rate-1

      FAULTRATE = FAULTRATE - 1;

      //  1836        %RETURN

      _imp_return;

      //  1837
      //  1838  act(193):gg = 0 %AND ->a5 %UNLESS sym = '=' %or sym = '<'; !cdummy

    case_ACT_193:;
      if ((SYM) == (61)) goto L_016B;
      if ((SYM) == (60)) goto L_016B;
      GG = 0;
      goto U_100E;
    L_016B:;

    //  1839  act(181):atom1 = amap(decl&15);                             !dummy

    case_ACT_181:;
      ATOM1 = AMAP[DECL & 15];

      //  1840           ->more

      goto U_1008;

      //  1841
      //  1842  act(182):class = escdec;  g = glink(g)!escape

    case_ACT_182:;
      CLASS = 252;
      G = GLINK[G] | 4096;

      //  1843           decl = 0;  otype = 0;  ->esc;                      !decl

      DECL = 0;
      OTYPE = 0;
      goto U_100F;

      //  1844
      //  1845  act(199):

    case_ACT_199:;

    //  1846           !reverse links;                                     !compile
    //  1847
    //  1848           s = 0

      S = 0;

      //  1849           %WHILE node # 0 %CYCLE

    L_016C:;
      if ((NODE) == (0)) goto L_016D;

        //  1850              z == ar(node)_link

      Z = (int *)&AR[NODE - 1].LINK;
      //  1851              k = z;  z = s;  s = node;  node = k

      K = *Z;
      *Z = S;
      S = NODE;
      NODE = K;

      //  1852           %repeat

      goto L_016C;
    L_016D:;

    //  1853           ss = s

      SS = S;

      //  1854
      //  1855           code atom(28) %IF quote # 0;                       !expend

      if ((QUOTE) == (0)) goto L_016E;
      CODEATOM(28);
    L_016E:;

    //  1856           compile;  ->more %IF atom1&error = 0

      COMPILE();
      if ((ATOM1 & 32768) != (0)) goto L_016F;
      goto U_1008;
    L_016F:;

    //  1857           ->fail1

      goto U_1009;

      //  1858
      //  1859  act(184):->fail4 %UNLESS type = integer

    case_ACT_184:;
      if ((TYPE) == (1)) goto L_0170;
      goto U_1012;
    L_0170:;

    //  1860           %IF subatom < 0 %THEN lit = tag(-subatom)_format %C

      if ((SUBATOM) >= (0)) goto L_0171;
      LIT = TAG[-SUBATOM].FORMAT;
      goto L_0172;
    L_0171:;
      LIT = LITPOOL[SUBATOM];
    L_0172:;

    //  1861+                          %ELSE lit = lit pool(subatom)
    //  1862           ->fail4 %IF lit # 0

      if ((LIT) == (0)) goto L_0173;
      goto U_1012;
    L_0173:;

    //  1863           ->more

      goto U_1008;

      //  1864  act(185):                                                   !apply parameters

    case_ACT_185:;

    //  1865           s = 0

      S = 0;

      //  1866           %WHILE node # 0 %CYCLE

    L_0174:;
      if ((NODE) == (0)) goto L_0175;

        //  1867              z == ar(node)_link

      Z = (int *)&AR[NODE - 1].LINK;
      //  1868              k = z;  z = s;  s = node;  node = k

      K = *Z;
      *Z = S;
      S = NODE;
      NODE = K;

      //  1869           %REPEAT

      goto L_0174;
    L_0175:;

    //  1870           ss = s

      SS = S;

      //  1871
      //  1872           atom1 = ar(s)_class;  atom2 = 0

      ATOM1 = AR[S - 1].CLASS;
      ATOM2 = 0;

      //  1873           atom1 = var %IF atom1 = 97 %OR atom1 = 98

      if ((ATOM1) == (97)) goto L_0176;
      if ((ATOM1) != (98)) goto L_0177;
    L_0176:;
      ATOM1 = 91;
    L_0177:;

    //  1874           arp == ar(nmax)

      ARP = (struct ARFM *)&AR[NMAX - 1];
      //  1875           x = arp_x

      X = ARP->X;

      //  1876           pos1 = arp_pos

      POS1 = ARP->POS;

      //  1877           pos2 = 0

      POS2 = 0;

      //  1878           app = 0

      APP = 0;

      //  1879           format = tag(x)_format

      FORMAT = TAG[X].FORMAT;

      //  1880           flags = tag(x)_flags

      FLAGS = TAG[X].FLAGS;

      //  1881           type = flags>>4&7

      TYPE = (unsigned int)FLAGS >> 4 & 7;

      //  1882           protection = flags&prot

      PROTECTION = FLAGS & 256;

      //  1883           protection = 0 %IF flags&aname # 0

      if ((FLAGS & 1024) == (0)) goto L_0178;
      PROTECTION = 0;
    L_0178:;

    //  1884
    //  1885           %IF flags&subname # 0 %AND format # 0 %START

      if ((FLAGS & 2048) == (0)) goto L_0179;
      if ((FORMAT) == (0)) goto L_0179;

        //  1886              ->fail1 %if format selected = 0

      if ((FORMATSELECTED()) != (0)) goto L_017A;
      goto U_1009;
    L_017A:;

    //  1887           %FINISH

    L_0179:;

    //  1888
    //  1889           ->a6

      goto U_1011;

      //  1890
      //  1891  act(187):protection = prot;  ->more;                      !%SETPROT

    case_ACT_187:;
      PROTECTION = 256;
      goto U_1008;

      //  1892  act(186):->more %if protection&prot = 0

    case_ACT_186:;
      if ((PROTECTION & 256) != (0)) goto L_017B;
      goto U_1008;
    L_017B:;

    //  1893           prot err = nmin

      PROTERR = NMIN;

      //  1894           -> a7

      goto U_1019;

      //  1895  act(191):k = protection;                           !%GUARD

    case_ACT_191:;
      K = PROTECTION;

      //  1896           code atom(0)

      CODEATOM(0);

      //  1897           protection = k %IF atom flags&aname = 0

      if ((ATOMFLAGS & 1024) != (0)) goto L_017C;
      PROTECTION = K;
    L_017C:;

    //  1898           ->more

      goto U_1008;

      //  1899
      //  1900  act(192):->fail1 %IF parsed machine code=0

    case_ACT_192:;
      if ((PARSEDMACHINECODE()) != (0)) goto L_017D;
      goto U_1009;
    L_017D:;

    //  1901           ->more

      goto U_1008;

      //  1902
      //  1903  act(189):k = gapp;                                     !%GAPP

    case_ACT_189:;
      K = GAPP();

      //  1904           delete names(1)

      DELETENAMES(1);

      //  1905           tmax = tbase;  tbase = gram (gmin);           !restore tmax

      TMAX = TBASE;
      TBASE = GRAM[GMIN];

      //  1906           local= tbase

      LOCAL = TBASE;

      //  1907           gmin = gmin+1

      GMIN = GMIN + 1;

      //  1908
      //  1909           x = ar(ar(nmax)_class)_sub

      X = AR[AR[NMAX - 1].CLASS - 1].SUB;

      //  1910           tag(x)_app = k;                               !update app

      TAG[X].APP = K;

      //  1911           ->more

      goto U_1008;

      //  1912
      //  1913  act(190):gmin = gmin-1;                                !%LOCAL

    case_ACT_190:;
      GMIN = GMIN - 1;

      //  1914           abandon(2) %IF gmin <= gmax

      if ((GMIN) > (GMAX)) goto L_017E;
      ABANDON(2);
    L_017E:;

    //  1915           gram (gmin) = tbase;  tbase = tmax

      GRAM[GMIN] = TBASE;
      TBASE = TMAX;

      //  1916           local = tbase

      LOCAL = TBASE;

      //  1917           ->more

      goto U_1008;

      //  1918
      //  1919  ! errors
      //  1920
      //  1921  fail4:k = error+10;            ->failed;        !*size

    U_1012:;
      K = 32768 + 10;
      goto U_1013;

      //  1922  fail3:k = error+7;             ->failed;        !*context

    U_1018:;
      K = 32768 + 7;
      goto U_1013;

      //  1923  fail2:k = error+5;  pos2 = 0;  ->failed;        !*type

    U_1017:;
      K = 32768 + 5;
      POS2 = 0;
      goto U_1013;

      //  1924  fail0:k = error+3;             ->failed;        !*too complex

    U_100D:;
      K = 32768 + 3;
      goto U_1013;

      //  1925  fail1:k = atom1;  pos2 = 0

    U_1009:;
      K = ATOM1;
      POS2 = 0;

      //  1926
      //  1927  failed:

    U_1013:;

    //  1928        %IF diag&32 # 0 %START

      if ((DIAG & 32) == (0)) goto L_017F;

        //  1929           printstring("Atom1 =")

      _imp_printf("%s", "Atom1 =");

      //  1930           write(atom1, 3)

      _imp_WRITE(ATOM1, 3);

      //  1931           printstring("  Atom2 =")

      _imp_printf("%s", "  Atom2 =");

      //  1932           write(atom2, 3)

      _imp_WRITE(ATOM2, 3);

      //  1933           printstring("  subatom =")

      _imp_printf("%s", "  subatom =");

      //  1934           write(subatom, 3)

      _imp_WRITE(SUBATOM, 3);

      //  1935           newline

      _imp_NEWLINE();

      //  1936           printstring("Type =")

      _imp_printf("%s", "Type =");

      //  1937           write(type, 1)

      _imp_WRITE(TYPE, 1);

      //  1938           printstring("   Ptype =")

      _imp_printf("%s", "   Ptype =");

      //  1939           write(ptype, 1)

      _imp_WRITE(PTYPE, 1);

      //  1940           newline

      _imp_NEWLINE();

      //  1941           printstring("App =")

      _imp_printf("%s", "App =");

      //  1942           write(app, 1)

      _imp_WRITE(APP, 1);

      //  1943           printstring("   Papp =")

      _imp_printf("%s", "   Papp =");

      //  1944           write(papp, 1)

      _imp_WRITE(PAPP, 1);

      //  1945           newline

      _imp_NEWLINE();

      //  1946           printstring("Format =")

      _imp_printf("%s", "Format =");

      //  1947           write(format, 1)

      _imp_WRITE(FORMAT, 1);

      //  1948           printstring("   Pformat =")

      _imp_printf("%s", "   Pformat =");

      //  1949           write(pformat, 1)

      _imp_WRITE(PFORMAT, 1);

      //  1950           newline

      _imp_NEWLINE();

      //  1951           %monitor

      _imp_monitor_loc(__LINE__, __FILE__, __PRETTY_FUNCTION__);

      //  1952         %FINISH

    L_017F:;

    //  1953
    //  1954         quote = 0 %AND readsym %WHILE sym # nl %AND sym # ';'

    L_0180:;
      if ((SYM) == (10)) goto L_0181;
      if ((SYM) == (59)) goto L_0181;
      QUOTE = 0;
      READSYM();
      goto L_0180;
    L_0181:;

    //  1955         %IF k&error # 0 %START

      if ((K & 32768) == (0)) goto L_0182;

        //  1956            fault(k&255)

      FAULT(K & 255);

      //  1957         %FINISH %ELSE %START

      goto L_0183;
    L_0182:;

    //  1958           %IF prot err = nmin %THEN fault(14) %ELSE fault(0)

      if ((PROTERR) != (NMIN)) goto L_0184;
      FAULT(14);
      goto L_0185;
    L_0184:;
      FAULT(0);
    L_0185:;

    //  1959         %FINISH

    L_0183:;

    //  1960         gg = 0;  ss = 0;  symtype = 0

      GG = 0;
      SS = 0;
      SYMTYPE = 0;

      //  1961     %END;                                               !of analyse

      _imp_return;

    case_ACT_dispatch:
      if (ACT_index < 180 || ACT_index > 200)
        _imp_signalf(6, 3, ACT_index, "->ACT(%d) out of bounds at %s line %d", ACT_index, ACT_file, ACT_line);
      goto *ACT[ACT_index - 180];

    case_ACT_missing:
      _imp_signalf(8, 2, ACT_index, "switch jump to undefined label ACT(%d): at %s line %d", ACT_index, ACT_file,
                   ACT_line);

    case_PACTION_dispatch:
      if (PACTION_index < 0 || PACTION_index > 15)
        _imp_signalf(6, 3, PACTION_index, "->PACTION(%d) out of bounds at %s line %d", PACTION_index, PACTION_file,
                     PACTION_line);
      goto *PACTION[PACTION_index - 0];

    case_PACTION_missing:
      _imp_signalf(8, 2, PACTION_index, "switch jump to undefined label PACTION(%d): at %s line %d", PACTION_index,
                   PACTION_file, PACTION_line);
      _imp_begin_backtrace(ANALYSE);
      _imp_diagf("\nLocal Variables:\n\n");
      _imp_bt_int(STRP);
      _imp_bt_int(MARK);
      _imp_bt_int(FLAGS);
      _imp_bt_int(PROTERR);
      _imp_bt_int(K);
      _imp_bt_int(S);
      _imp_bt_int(C);
      _imp_bt_int(KEY);
      _imp_bt_int(NODE);
      if (Z == 0) {
        _imp_diagf("Z @[<NIL>]\n");
      } else if (_imp_unassigned(Z)) {
        _imp_diagf("Z @[<UNASSIGNED POINTER>]\n");
      } else {
        if (_imp_unassigned(*Z)) {
          _imp_diagf("Z @[%p] = <UNASSIGNED INTEGER>\n", Z);
        } else {
          _imp_diagf("Z @[%p] = %d\n", Z, *(int *)Z);
        }
      }
      _imp_diagf("ARP @[%p] = <RECORD>\n", ARP);
      _imp_end_backtrace();
    } /* end of ANALYSE */

    //  1962
    //  1963     %ROUTINE compile

    void COMPILE(void) {
      _imp_enter(COMPILE);

      //  1964
      //  1965        %CONSTINTEGER then = 4, else = 8, loop = 16
      //  1966
      //  1967        %SWITCH c(0:actions), litop(1:12)

      int C_index;
      int C_line;
      char *C_file;
      static const void *C[181] = {
          &&case_C_0,       &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default,
          &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default,
          &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default,
          &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default,
          &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_27,      &&case_C_28,      &&case_C_29,
          &&case_C_30,      &&case_C_31,      &&case_C_32,      &&case_C_33,      &&case_C_34,      &&case_C_35,
          &&case_C_36,      &&case_C_37,      &&case_C_38,      &&case_C_39,      &&case_C_default, &&case_C_41,
          &&case_C_42,      &&case_C_43,      &&case_C_44,      &&case_C_45,      &&case_C_46,      &&case_C_47,
          &&case_C_48,      &&case_C_49,      &&case_C_50,      &&case_C_51,      &&case_C_52,      &&case_C_53,
          &&case_C_default, &&case_C_55,      &&case_C_56,      &&case_C_57,      &&case_C_58,      &&case_C_59,
          &&case_C_60,      &&case_C_default, &&case_C_62,      &&case_C_63,      &&case_C_64,      &&case_C_65,
          &&case_C_default, &&case_C_67,      &&case_C_68,      &&case_C_69,      &&case_C_70,      &&case_C_71,
          &&case_C_72,      &&case_C_default, &&case_C_74,      &&case_C_75,      &&case_C_76,      &&case_C_77,
          &&case_C_78,      &&case_C_79,      &&case_C_80,      &&case_C_81,      &&case_C_82,      &&case_C_83,
          &&case_C_84,      &&case_C_85,      &&case_C_86,      &&case_C_87,      &&case_C_88,      &&case_C_89,
          &&case_C_90,      &&case_C_91,      &&case_C_92,      &&case_C_93,      &&case_C_default, &&case_C_default,
          &&case_C_96,      &&case_C_97,      &&case_C_98,      &&case_C_99,      &&case_C_100,     &&case_C_101,
          &&case_C_102,     &&case_C_103,     &&case_C_104,     &&case_C_105,     &&case_C_106,     &&case_C_107,
          &&case_C_108,     &&case_C_109,     &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default,
          &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default,
          &&case_C_120,     &&case_C_121,     &&case_C_122,     &&case_C_default, &&case_C_124,     &&case_C_125,
          &&case_C_126,     &&case_C_127,     &&case_C_128,     &&case_C_default, &&case_C_130,     &&case_C_131,
          &&case_C_132,     &&case_C_133,     &&case_C_134,     &&case_C_135,     &&case_C_136,     &&case_C_137,
          &&case_C_138,     &&case_C_139,     &&case_C_140,     &&case_C_141,     &&case_C_142,     &&case_C_143,
          &&case_C_144,     &&case_C_145,     &&case_C_146,     &&case_C_147,     &&case_C_148,     &&case_C_149,
          &&case_C_default, &&case_C_151,     &&case_C_152,     &&case_C_153,     &&case_C_154,     &&case_C_155,
          &&case_C_156,     &&case_C_157,     &&case_C_158,     &&case_C_159,     &&case_C_160,     &&case_C_161,
          &&case_C_162,     &&case_C_163,     &&case_C_164,     &&case_C_165,     &&case_C_166,     &&case_C_167,
          &&case_C_168,     &&case_C_default, &&case_C_170,     &&case_C_171,     &&case_C_172,     &&case_C_173,
          &&case_C_174,     &&case_C_175,     &&case_C_default, &&case_C_default, &&case_C_default, &&case_C_default,
          &&case_C_default};

      int LITOP_index;
      int LITOP_line;
      char *LITOP_file;
      static const void *LITOP[12] = {&&case_LITOP_1, &&case_LITOP_2,  &&case_LITOP_3,  &&case_LITOP_4,
                                      &&case_LITOP_5, &&case_LITOP_6,  &&case_LITOP_7,  &&case_LITOP_8,
                                      &&case_LITOP_9, &&case_LITOP_10, &&case_LITOP_11, &&case_LITOP_12};

      //  1968
      //  1969        %CONSTBYTEINTEGERARRAY operator(1:14) = %C

      const unsigned char OPERATOR[14] = {91, 93, 88, 47, 38, 33, 37, 43, 45, 42, 81, 120, 46, 118};
      _imp_create_constdv(const, unsigned char, OPERATOR, 1, 14);

      //  1970+                          '[',  ']',  'X',  '/', '&',  '!',  '%',  '+',
      //  1971+                          '-',  '*',  'Q',  'x', '.',  'v'
      //  1972
      //  1973        %CONSTBYTEINTEGERARRAY cc(0 : 7) = '#','=',')','<','(','>', 'k','t'

      const unsigned char CC[8] = {35, 61, 41, 60, 40, 62, 107, 116};
      _imp_create_constdv(const, unsigned char, CC, 0, 7);

      //  1974
      //  1975        %CONSTBYTEINTEGERARRAY anyform(0:15) = 1,0,1,1(4),1,0,1,1,0,1,1,1,1

      const unsigned char ANYFORM[16] = {1, 0, 1, [3 ... 6] = 1, 1, 0, 1, 1, 0, 1, 1, 1, 1};
      _imp_create_constdv(const, unsigned char, ANYFORM, 0, 15);

      //  1976
      //  1977        %CONSTSHORTINTEGERARRAY decmap(0:15) = %C

      const short int DECMAP[16] = {1, 2, 4107, 4109, 5132, 5134, 3, 4, 4103, 4104, 4105, 4106, 6, 0, 0, 0};
      _imp_create_constdv(const, short int, DECMAP, 0, 15);

      //  1978+          1,             2,
      //  1979+          16_100B,       16_100D,       16_140C,      16_140E,
      //  1980+          3,             4,
      //  1981+          16_1007,       16_1008,       16_1009,      16_100A,
      //  1982+          6,             0,             0,            0
      //  1983        %OWNBYTEINTEGERARRAY cnest(0:15)

      static unsigned char CNEST[16];
      _imp_create_constdv(static, unsigned char, CNEST, 0, 15);

      //  1984        %INTEGER lmode, clab, dupid

      int LMODE = 0xFEFEFEFE;
      int CLAB = 0xFEFEFEFE;
      int DUPID = 0xFEFEFEFE;

      //  1985        %INTEGER resln

      int RESLN = 0xFEFEFEFE;

      //  1986        %OWNINTEGER last def = 0

      static int LASTDEF = 0;

      //  1987        %OWNINTEGER lb, ub

      static int LB;
      static int UB;

      //  1988        %INTEGER cp, ord

      int CP = 0xFEFEFEFE;
      int ORD = 0xFEFEFEFE;

      //  1989        %INTEGER next, link, j, k, n, done

      int NEXT = 0xFEFEFEFE;
      int LINK = 0xFEFEFEFE;
      int J = 0xFEFEFEFE;
      int K = 0xFEFEFEFE;
      int N = 0xFEFEFEFE;
      int DONE = 0xFEFEFEFE;

      //  1990        %INTEGER class

      int CLASS = 0xFEFEFEFE;

      //  1991        %INTEGER lit2, defs, decs, cident

      int LIT2 = 0xFEFEFEFE;
      int DEFS = 0xFEFEFEFE;
      int DECS = 0xFEFEFEFE;
      int CIDENT = 0xFEFEFEFE;

      //  1992        %INTEGER pending;  %OWNINTEGERARRAY pstack(1:40)

      int PENDING = 0xFEFEFEFE;
      static int PSTACK[40];
      _imp_create_constdv(static, int, PSTACK, 1, 40);

      //  1993        %OWNSTRING(8) name = ""

      static _imp_string8 NAME = _imp_str_init("");

      //  1994        %OWNINTEGER count = 0

      static int COUNT = 0;

      //  1995
      //  1996        %ROUTINE def lab(%INTEGER l)

      void DEFLAB(int L) {
        _imp_enter(DEFLAB);

        //  1997           op(':', l)

        OP(58, L);

        //  1998           access = 1

        ACCESS = 1;

        //  1999        %END

        _imp_return;
        _imp_begin_backtrace(DEFLAB);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("L = %d\n", L);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of DEFLAB */

      //  2000
      //  2001        %ROUTINE get next

      void GETNEXT(void) {
        _imp_enter(GETNEXT);

        //  2002           %RECORD(arfm)%NAME p;      !imp77:

        struct ARFM *P = (void *)0xFEFEFEFEFEFEFEFELL;

        //  2003  gn:      %IF next = 0 %START;                        !end of phrase

      U_1012:;
        if ((NEXT) != (0)) goto L_0186;

          //  2004              class = 0 %AND %RETURN %IF link = 0;     !end of statement

        if ((LINK) != (0)) goto L_0187;
        CLASS = 0;
        _imp_return;
      L_0187:;

      //  2005              p == ar(link)

        P = (struct ARFM *)&AR[LINK - 1];
        //  2006              next = p_link

        NEXT = P->LINK;

        //  2007              link = p_sub

        LINK = P->SUB;

        //  2008           %FINISH

      L_0186:;

      //  2009           %CYCLE

      L_0188:;

      //  2010              p == ar(next)

        P = (struct ARFM *)&AR[NEXT - 1];
        //  2011              x = p_sub

        X = P->SUB;

        //  2012              class = p_class

        CLASS = P->CLASS;

        //  2013              %EXIT %IF class < actions;               !an atom

        if ((CLASS) >= (180)) goto L_0189;
        goto L_018A;
      L_0189:;

      //  2014              %IF x = 0 %START;                        !null phrase

        if ((X) != (0)) goto L_018B;

          //  2015                 next = p_link;  ->gn

        NEXT = P->LINK;
        goto U_1012;

        //  2016              %FINISH

      L_018B:;

      //  2017              %IF p_link # 0 %START;                   !follow a phrase

        if ((P->LINK) == (0)) goto L_018C;

          //  2018                 p_sub = link;  link = next

        P->SUB = LINK;
        LINK = NEXT;

        //  2019              %FINISH

      L_018C:;

      //  2020              next = x

        NEXT = X;

        //  2021           %REPEAT

        goto L_0188;
      L_018A:;

      //  2022           next = p_link

        NEXT = P->LINK;

        //  2023           %IF diag&2 # 0 %START

        if ((DIAG & 2) == (0)) goto L_018D;

          //  2024              spaces(8-length(name)) %UNLESS name = ""


        /* clang-format off */
if (_imp_strcmp((_imp_string *)_imp_strp(NAME), (_imp_string *)_imp_strp(_imp_str_literal(""))) == 0) goto L_018E;

        /* clang-format on */
        _imp_SPACES(8 - *_imp_LENGTH((_imp_string255 *)&NAME));
      L_018E:;

      //  2025              name = text(class)

        _imp_strcpy(&NAME, _imp_strp(TEXT[CLASS]), /*max:*/ 8);

        //  2026              write(x, 2)

        _imp_WRITE(X, 2);

        //  2027              space

        _imp_SPACE();

        //  2028              printstring(name)

        _imp_printf("%S", _imp_strp(NAME));

        //  2029              space

        _imp_SPACE();

        //  2030              count = count-1

        COUNT = COUNT - 1;

        //  2031              %IF count <= 0 %START

        if ((COUNT) > (0)) goto L_018F;

          //  2032                 count = 5

        COUNT = 5;

        //  2033                 name = ""

        _imp_strcpy(&NAME, _imp_strp(_imp_str_literal("")), /*max:*/ 8);

        //  2034                 newline

        _imp_NEWLINE();

        //  2035              %FINISH

      L_018F:;

      //  2036           %FINISH

      L_018D:;

      //  2037        %END

        _imp_return;
        _imp_begin_backtrace(GETNEXT);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_diagf("P @[%p] = <RECORD>\n", P);
        _imp_end_backtrace();
      } /* end of GETNEXT */

      //  2038
      //  2039        %ROUTINE set subs(%INTEGER n)

      void SETSUBS(int N) {
        _imp_enter(SETSUBS);

        //  2040
        //  2041           !update the app field in n array descriptors
        //  2042
        //  2043           %INTEGER p

        int P = 0xFEFEFEFE;

        //  2044           p = tmax

        P = TMAX;

        //  2045           %WHILE n > 0 %CYCLE

      L_0190:;
        if ((N) <= (0)) goto L_0191;

          //  2046              %SIGNAL 15,15 %IF p < tbase

        if ((P) >= (TBASE)) goto L_0192;
        _imp_signal(15, 15, 0, "");
      L_0192:;

      //  2047              tag(p)_app = dimension

        TAG[P].APP = DIMENSION;

        //  2048              p = p-1;  n = n-1

        P = P - 1;
        N = N - 1;

        //  2049           %REPEAT

        goto L_0190;
      L_0191:;

      //  2050        %END

        _imp_return;
        _imp_begin_backtrace(SETSUBS);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("N = %d\n", N);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_bt_int(P);
        _imp_end_backtrace();
      } /* end of SETSUBS */

      //  2051
      //  2052        %ROUTINE set bp

      void SETBP(void) {
        _imp_enter(SETBP);

        //  2053
        //  2054           !define a constant bound pair from the last stacked constants
        //  2055
        //  2056           pending = pending-2

        PENDING = PENDING - 2;

        //  2057           lb = pstack(pending+1);  ub = pstack(pending+2)

        LB = PSTACK[PENDING + 1 - 1];
        UB = PSTACK[PENDING + 2 - 1];

        //  2058           %IF ub < lb-1 %START

        if ((UB) >= (LB - 1)) goto L_0193;

          //  2059              pos1 = 0;  next = link;  fault(11)

        POS1 = 0;
        NEXT = LINK;
        FAULT(11);

        //  2060              ub = lb

        UB = LB;

        //  2061           %FINISH

      L_0193:;

      //  2062           set const(lb);  set const(ub)

        SETCONST(LB);
        SETCONST(UB);

        //  2063           put('b') %UNLESS class = 146

        if ((CLASS) == (146)) goto L_0194;
        PUT(98);
      L_0194:;

      //  2064        %END

        _imp_return;
        _imp_begin_backtrace(SETBP);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of SETBP */

      //  2065
      //  2066        %ROUTINE compile end(%INTEGER type)

      void COMPILEEND(int TYPE) {
        _imp_enter(COMPILEEND);

        //  2067
        //  2068           ! type = 0:eof, 1:eop, 2:end
        //  2069
        //  2070           %IF access # 0 %START

        if ((ACCESS) == (0)) goto L_0195;

          //  2071              open = 0

        OPEN = 0;

        //  2072              fault(19) %IF block form > proc;           !can reach end

        if ((BLOCKFORM) <= (7)) goto L_0196;
        FAULT(19);
      L_0196:;

      //  2073           %FINISH

      L_0195:;

      //  2074
      //  2075           %WHILE dict(dmin) >= 0 %CYCLE;                !finishes & repeats

      L_0197:;
        if ((DICT[DMIN - 1]) < (0)) goto L_0198;

          //  2076              fault(17+dict(dmin)&1)

        FAULT(17 + (DICT[DMIN - 1] & 1));

        //  2077              dmin = dmin+1

        DMIN = DMIN + 1;

        //  2078           %REPEAT

        goto L_0197;
      L_0198:;

      //  2079           {delete names(0)}
      //  2080           put(';')

        PUT(59);

        //  2081           put(';') %IF type = 1;       !endofprogram

        if ((TYPE) != (1)) goto L_0199;
        PUT(59);
      L_0199:;

      //  2082
      //  2083           bflags = bflags!open;                         !show if it returns

        *BFLAGS = *BFLAGS | OPEN;

        //  2084
        //  2085           def lab(0) %IF block tag # 0 %AND level # 1;  !for jump around

        if ((BLOCKTAG) == (0)) goto L_019A;
        if ((LEVEL) == (1)) goto L_019A;
        DEFLAB(0);
      L_019A:;

      //  2086           %IF type # 2 %START;                          !eop, eof

        if ((TYPE) == (2)) goto L_019B;

          //  2087              fault(16) %IF level # type;                !end missing

        if ((LEVEL) == (TYPE)) goto L_019C;
        FAULT(16);
      L_019C:;

      //  2088           %FINISH %ELSE %START

        goto L_019D;
      L_019B:;

      //  2089              %IF level = 0 %START

        if ((LEVEL) != (0)) goto L_019E;

          //  2090                 fault(15);                                 !spurious end

        FAULT(15);

        //  2091              %FINISH

      L_019E:;

      //  2092           %FINISH

      L_019D:;

      //  2093
      //  2094           !end mark = 11;               !IMP77
      //  2095        %END

        _imp_return;
        _imp_begin_backtrace(COMPILEEND);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("TYPE = %d\n", TYPE);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of COMPILEEND */

      //  2096
      //  2097        %ROUTINE def(%INTEGER p)

      void DEF(int P) {
        _imp_enter(DEF);

        //  2098
        //  2099           !dump a descriptor
        //  2100
        //  2101           %INTEGER t, f, type

        int T = 0xFEFEFEFE;
        int F = 0xFEFEFEFE;
        int TYPE = 0xFEFEFEFE;

        //  2102           %RECORD(tagfm)%NAME v;      !imp77:

        struct TAGFM *V = (void *)0xFEFEFEFEFEFEFEFELL;

        //  2103           defs = defs+1

        DEFS = DEFS + 1;

        //  2104           v == tag(p)

        V = (struct TAGFM *)&TAG[P];
        //  2105           t = 0

        T = 0;

        //  2106           put('$')

        PUT(36);

        //  2107           %UNLESS v_index < 0 %START;                   !no index for subnames

        if ((V->INDEX) < (0)) goto L_019F;

          //  2108              id = id+1 %AND v_index = id %IF v_index = 0

        if ((V->INDEX) != (0)) goto L_01A0;
        ID = ID + 1;
        V->INDEX = ID;
      L_01A0:;

      //  2109              last def = v_index

        LASTDEF = V->INDEX;

        //  2110              putword(lastdef)

        PUTWORD(LASTDEF);

        //  2111           %FINISH %else putword(0)

        goto L_01A1;
      L_019F:;
        PUTWORD(0);
      L_01A1:;

      //  2112           print ident(p, 1);                            !output the name

        PRINTIDENT(P, 1);

        //  2113           t = v_flags

        T = V->FLAGS;

        //  2114           type = t

        TYPE = T;

        //  2115           type = type&(\(7<<4)) %IF type&(7<<4) >= 6<<4;!routine & pred

        if ((TYPE & ((int)7) << (((int)4) & 31)) < (((int)6) << (((int)4) & 31))) goto L_01A2;
        TYPE = TYPE & ~(((int)7) << (((int)4) & 31));
      L_01A2:;

      //  2116           put(','); put(type&2_1111111);            !type & form

        PUT(44);
        PUT(TYPE & 127);

        //  2117           f = v_format

        F = V->FORMAT;

        //  2118           f = tag(f)_index %IF t&16_70 = record<<4

        if ((T & 112) != (((int)4) << (((int)4) & 31))) goto L_01A3;
        F = TAG[F].INDEX;
      L_01A3:;

      //  2119           f = v_index %IF f < 0

        if ((F) >= (0)) goto L_01A4;
        F = V->INDEX;
      L_01A4:;

      //  2120           op(',', f);               !format

        OP(44, F);

        //  2121           f = otype+t>>4&2_1111000

        F = OTYPE + ((unsigned int)T >> 4 & 120);

        //  2122           f = f!8 %IF class = 125;                      !add spec from %DUP

        if ((CLASS) != (125)) goto L_01A5;
        F = F | 8;
      L_01A5:;

      //  2123           dim = v_app;                  !dimension

        DIM = V->APP;

        //  2124           dim = 0 %unless 0 < dim <= dim limit

        {
          int tmp;
          if ((0) >= (tmp = DIM)) goto L_01A6;
          // Double-sided test on DIM (Part II)
          if (tmp <= (6)) goto L_01A7;
        }
      L_01A6:;
        DIM = 0;
      L_01A7:;

      //  2125           put(','); putlong(f+dim<<8);                              !otype & spec & prot

        PUT(44);
        PUTLONG(F + (((int)DIM) << (((int)8) & 31)));

        //  2126           defs = 0 %IF t&parameters = 0

        if ((T & 4096) != (0)) goto L_01A8;
        DEFS = 0;
      L_01A8:;

      //  2127           f = t&15

        F = T & 15;

        //  2128           %IF v_flags&spec # 0 %START

        if ((V->FLAGS & 128) == (0)) goto L_01A9;

          //  2129              v_flags = v_flags&(\spec) %UNLESS 3 <= f <= 10

        {
          int tmp;
          if ((3) > (tmp = F)) goto L_01AA;
          // Double-sided test on F (Part II)
          if (tmp <= (10)) goto L_01AB;
        }
      L_01AA:;
        V->FLAGS = V->FLAGS & (~128);
      L_01AB:;

      //  2130              ocount = -1;             ! external specs have no constants

        OCOUNT = -1;

        //  2131           %FINISH

      L_01A9:;

      //  2132           dimension = 0

        DIMENSION = 0;

        //  2133           %if otype = 2 %and (f=2 %or f=12 %or f=14) %start

        if ((OTYPE) != (2)) goto L_01AC;
        if ((F) == (2)) goto L_01AD;
        if ((F) == (12)) goto L_01AD;
        if ((F) != (14)) goto L_01AC;
      L_01AD:;

      //  2134              v_flags = v_flags-1;            !convert to simple

        V->FLAGS = V->FLAGS - 1;

        //  2135           %finish

      L_01AC:;

      //  2136        %END

        _imp_return;
        _imp_begin_backtrace(DEF);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("P = %d\n", P);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_bt_int(T);
        _imp_bt_int(F);
        _imp_bt_int(TYPE);
        _imp_diagf("V @[%p] = <RECORD>\n", V);
        _imp_end_backtrace();
      } /* end of DEF */

      //  2137
      //  2138        %ROUTINE def s lab(%INTEGER n)

      void DEFSLAB(int N) {
        _imp_enter(DEFSLAB);

        //  2139
        //  2140           !define a switch label, x defines the switch tag
        //  2141
        //  2142           %INTEGER p, l, b, w, bit

        int P = 0xFEFEFEFE;
        int L = 0xFEFEFEFE;
        int B = 0xFEFEFEFE;
        int W = 0xFEFEFEFE;
        int BIT = 0xFEFEFEFE;

        //  2143           p = tag(x)_format;                            !pointer to table

        P = TAG[X].FORMAT;

        //  2144           l = dict(p);                                  !lower bound

        L = DICT[P - 1];

        //  2145           %IF l <= n <= dict(p+1) %START

        {
          int tmp;
          if ((L) > (tmp = N)) goto L_01AE;
          // Double-sided test on N (Part II)
          if (tmp > (DICT[P + 1 - 1])) goto L_01AE;
        }

        //  2146              b = n-l

        B = N - L;

        //  2147              w = b>>4+p

        W = ((unsigned int)B >> 4) + P;

        //  2148              bit = 1<<(b&15)

        BIT = ((int)1) << (((int)(B & 15)) & 31);

        //  2149              %IF dict(w+2)&bit # 0 %START;                 !already set

        if ((DICT[W + 2 - 1] & BIT) == (0)) goto L_01AF;

          //  2150                 fault(4) %IF pending # 0

        if ((PENDING) == (0)) goto L_01B0;
        FAULT(4);
      L_01B0:;

      //  2151                 %RETURN

        _imp_return;

        //  2152              %FINISH

      L_01AF:;

      //  2153              dict(w+2) <- dict(w+2)!bit %IF pending # 0

        if ((PENDING) == (0)) goto L_01B1;
        DICT[W + 2 - 1] = (int)(DICT[W + 2 - 1] | BIT);
      L_01B1:;

      //  2154              set const(n)

        SETCONST(N);

        //  2155              op('_', tag(x)_index)

        OP(95, TAG[X].INDEX);

        //  2156           %FINISH %ELSE %START

        goto L_01B2;
      L_01AE:;

      //  2157              fault(12)

        FAULT(12);

        //  2158           %FINISH

      L_01B2:;

      //  2159           access = 1

        ACCESS = 1;

        //  2160        %END

        _imp_return;
        _imp_begin_backtrace(DEFSLAB);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("N = %d\n", N);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_bt_int(P);
        _imp_bt_int(L);
        _imp_bt_int(B);
        _imp_bt_int(W);
        _imp_bt_int(BIT);
        _imp_end_backtrace();
      } /* end of DEFSLAB */

      //  2161
      //  2162        %ROUTINE call

      void CALL(void) {
        _imp_enter(CALL);

        //  2163           %RECORD(tagfm)%NAME T;      !IMP77:

        struct TAGFM *T = (void *)0xFEFEFEFEFEFEFEFELL;

        //  2164           t == tag(x)

        T = (struct TAGFM *)&TAG[X];
        //  2165           op('@', t_index)

        OP(64, T->INDEX);

        //  2166           access = 0 %IF t_flags&closed # 0;         !never comes back

        if ((T->FLAGS & 16384) == (0)) goto L_01B3;
        ACCESS = 0;
      L_01B3:;

      //  2167           put('E') %IF t_app = 0;             !no parameters

        if ((T->APP) != (0)) goto L_01B4;
        PUT(69);
      L_01B4:;

      //  2168        %END

        _imp_return;
        _imp_begin_backtrace(CALL);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_diagf("T @[%p] = <RECORD>\n", T);
        _imp_end_backtrace();
      } /* end of CALL */

      //  2169
      //  2170        %ROUTINE pop def

      void POPDEF(void) {
        _imp_enter(POPDEF);

        //  2171           set const(pstack(pending));  pending = pending-1

        SETCONST(PSTACK[PENDING - 1]);
        PENDING = PENDING - 1;

        //  2172        %END

        _imp_return;
        _imp_begin_backtrace(POPDEF);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of POPDEF */

      //  2173
      //  2174        %ROUTINE pop lit

      void POPLIT(void) {
        _imp_enter(POPLIT);

        //  2175           %IF pending = 0 %THEN lit = 0 %ELSE %START

        if ((PENDING) != (0)) goto L_01B5;
        LIT = 0;
        goto L_01B6;
      L_01B5:;

      //  2176              lit = pstack(pending);  pending = pending-1

        LIT = PSTACK[PENDING - 1];
        PENDING = PENDING - 1;

        //  2177           %FINISH

      L_01B6:;

      //  2178        %END

        _imp_return;
        _imp_begin_backtrace(POPLIT);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of POPLIT */

      //  2179
      //  2180
      //  2181        %IF sstype < 0 %START;                       !executable statement

      if ((SSTYPE) >= (0)) goto L_01B7;

        //  2182           %IF level = 0 %START;                     !outermost level

      if ((LEVEL) != (0)) goto L_01B8;

        //  2183              fault(13);                             !*order

      FAULT(13);

      //  2184           %FINISH %ELSE %START

      goto L_01B9;
    L_01B8:;

    //  2185              %IF access = 0 %START

      if ((ACCESS) != (0)) goto L_01BA;

        //  2186                 access = 1;  fault(-1);                !only a warning

      ACCESS = 1;
      FAULT(-1);

      //  2187              %FINISH

    L_01BA:;

    //  2188           %FINISH

    L_01B9:;

    //  2189        %FINISH

    L_01B7:;

    //  2190
    //  2191        %IF diag&2 # 0 %START

      if ((DIAG & 2) == (0)) goto L_01BB;

        //  2192           newline %IF sym # nl

      if ((SYM) == (10)) goto L_01BC;
      _imp_NEWLINE();
    L_01BC:;

    //  2193           printstring("ss =")

      _imp_printf("%s", "ss =");

      //  2194           write(ss, 1)

      _imp_WRITE(SS, 1);

      //  2195           newline

      _imp_NEWLINE();

      //  2196           count = 5

      COUNT = 5;

      //  2197           name = ""

      _imp_strcpy(&NAME, _imp_strp(_imp_str_literal("")), /*max:*/ 8);

      //  2198        %FINISH

    L_01BB:;

    //  2199
    //  2200        next = ss

      NEXT = SS;

      //  2201        pending = 0;  lmode = 0

      PENDING = 0;
      LMODE = 0;

      //  2202        link = 0;  decs = 0

      LINK = 0;
      DECS = 0;

      //  2203        defs = 0;  resln = 0;  done = 0

      DEFS = 0;
      RESLN = 0;
      DONE = 0;

      //  2204        ord = level

      ORD = LEVEL;

      //  2205        ord = 1 %IF this >= 0;           !recordformat declarations

      if ((THIS) < (0)) goto L_01BD;
      ORD = 1;
    L_01BD:;

    //  2206  c(0):

    case_C_0:;

    //  2207  top:  %IF next # link %START

    U_101B:;
      if ((NEXT) == (LINK)) goto L_01BF;

        //  2208           get next;  ->c(class)

      GETNEXT();
      C_line = __LINE__;
      C_file = __FILE__;
      C_index = CLASS;
      goto case_C_dispatch;

      //  2209  c(*):debug("* Switch label not set: c(".itos(class,0).")"); %stop

    case_C_default:;
      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "* Switch label not set: c(", _imp_strp(_imp_ITOS(CLASS, 0)), ")"));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );
      _imp_stop(0);

      //  2210        %FINISH

    L_01BF:;

    //  2211
    //  2212        !all done, tidy up declarations and jumps
    //  2213
    //  2214        newline %IF diag&2 # 0 %AND count # 5

      if ((DIAG & 2) == (0)) goto L_01C0;
      if ((COUNT) == (5)) goto L_01C0;
      _imp_NEWLINE();
    L_01C0:;

    //  2215
    //  2216        %IF lmode&(loop!then!else) # 0 %START;    !pending labels and jumps

      if ((LMODE & (16 | 4 | 8)) == (0)) goto L_01C1;

        //  2217           op('B', label-1) %IF lmode&loop # 0;   !repeat

      if ((LMODE & 16) == (0)) goto L_01C2;
      OP(66, LABEL - 1);
    L_01C2:;

    //  2218           def lab(label)   %IF lmode&then # 0;   !entry from then

      if ((LMODE & 4) == (0)) goto L_01C3;
      DEFLAB(LABEL);
    L_01C3:;

    //  2219           def lab(label-1) %IF lmode&else # 0;   !entry from else

      if ((LMODE & 8) == (0)) goto L_01C4;
      DEFLAB(LABEL - 1);
    L_01C4:;

    //  2220        %FINISH

    L_01C1:;

    //  2221
    //  2222        %RETURN %IF decs = 0

      if ((DECS) != (0)) goto L_01C5;
      _imp_return;
    L_01C5:;

    //  2223        atom1 = error %AND %RETURN %IF atom1 # 0;      !%INTEGERROUTINE

      if ((ATOM1) == (0)) goto L_01C6;
      ATOM1 = 32768;
      _imp_return;
    L_01C6:;

    //  2224        order = ord

      ORDER = ORD;

      //  2225        decl = decl&(\15)+decmap(decl&15);           !construct declarator flags

      DECL = (DECL & (~15)) + DECMAP[DECL & 15];

      //  2226        atom1 = atoms(decl&15);                      !generate class

      ATOM1 = ATOMS[DECL & 15];

      //  2227        %IF otype # 0 %START;                  !own, const etc.

      if ((OTYPE) == (0)) goto L_01C7;

        //  2228           atom1 = atom1+1 %IF atom1 # proc

      if ((ATOM1) == (7)) goto L_01C8;
      ATOM1 = ATOM1 + 1;
    L_01C8:;

    //  2229           %IF otype = 2 %START;               !const

      if ((OTYPE) != (2)) goto L_01C9;

        //  2230              n = decl&15

      N = DECL & 15;

      //  2231              %if n&1 # 0 %start

      if ((N & 1) == (0)) goto L_01CA;

        //  2232                 decl = decl!prot

      DECL = DECL | 256;

      //  2233                 decl = decl!const bit %IF decl&2_1111111 = iform

      if ((DECL & 127) != (17)) goto L_01CB;
      DECL = DECL | 8192;
    L_01CB:;

    //  2234              %finish

    L_01CA:;

    //  2235           %else

      goto L_01CC;
    L_01C9:;

    //  2236              decl = decl!own bit

      DECL = DECL | 512;

      //  2237           %FINISH

    L_01CC:;

    //  2238        %FINISH

    L_01C7:;

    //  2239        sstype = 1 %IF sstype = 0 %AND atom1 = proc

      if ((SSTYPE) != (0)) goto L_01CD;
      if ((ATOM1) != (7)) goto L_01CD;
      SSTYPE = 1;
    L_01CD:;

    //  2240        atom1 = atom1+1 %IF decl&spec # 0;             !onto spec variant

      if ((DECL & 128) == (0)) goto L_01CE;
      ATOM1 = ATOM1 + 1;
    L_01CE:;

    //  2241        ocount = 0 %AND cont = '+' %IF atom1 = 5;      !own array

      if ((ATOM1) != (5)) goto L_01CF;
      OCOUNT = 0;
      CONT = 43;
    L_01CF:;

    //  2242        %IF anyform(decl&15) = 0 %START;               !check meaningful

      if ((ANYFORM[DECL & 15]) != (0)) goto L_01D0;

        //  2243           %IF decl>>4&7 = record %START

      if (((unsigned int)DECL >> 4 & 7) != (4)) goto L_01D1;

        //  2244              this = fdef %IF tag(fdef)_flags&spec # 0

      if ((TAG[FDEF].FLAGS & 128) == (0)) goto L_01D2;
      THIS = FDEF;
    L_01D2:;

    //  2245              atom1 = error+21 %IF fdef = this;        !*context for format

      if ((FDEF) != (THIS)) goto L_01D3;
      ATOM1 = 32768 + 21;
    L_01D3:;

    //  2246           %FINISH

    L_01D1:;

    //  2247           atom1 = error+10 %IF fdef = 0;              !*size

      if ((FDEF) != (0)) goto L_01D4;
      ATOM1 = 32768 + 10;
    L_01D4:;

    //  2248        %FINISH

    L_01D0:;

    //  2249        %RETURN

      _imp_return;

      //  2250
      //  2251  atop:   access = 0;  ->top

    U_101C:;
      ACCESS = 0;
      goto U_101B;

      //  2252
      //  2253  ! declarators
      //  2254
      //  2255  c(88):                                                !rtype

    case_C_88:;

    //  2256  c(28): decl = x&(\7);                                 !stype

    case_C_28:;
      DECL = X & (~7);

      //  2257         fdef = x&7;                                    !precision

      FDEF = X & 7;

      //  2258         fdef = reals ln %IF x&2_1110001 = real<<4+1;  !convert to long

      if ((X & 113) != ((((int)2) << (((int)4) & 31)) + 1)) goto L_01D5;
      FDEF = REALSLN;
    L_01D5:;

    //  2259         decs = 1;  ->top

      DECS = 1;
      goto U_101B;

      //  2260  c(34):                                                !own

    case_C_34:;

    //  2261  c(35): otype = x;  ord = 1;  ->top;                   !external

    case_C_35:;
      OTYPE = X;
      ORD = 1;
      goto U_101B;

      //  2262  c(152):decl = decl+x<<1;  ->top;                      !xname

    case_C_152:;
      DECL = DECL + (((int)X) << (((int)1) & 31));
      goto U_101B;

      //  2263  c(31):                                                !proc

    case_C_31:;

    //  2264  c(32): spec mode = level+1;                           !fn/map

    case_C_32:;
      SPECMODE = LEVEL + 1;

      //  2265         decl = decl!prot %IF x = 9;                    !function

      if ((X) != (9)) goto L_01D6;
      DECL = DECL | 256;
    L_01D6:;

    //  2266  c(29): ord = 1;                                       !array

    case_C_29:;
      ORD = 1;

      //  2267         dim = 0

      DIM = 0;

      //  2268  c(30): decl = decl+x;                                 !name

    case_C_30:;
      DECL = DECL + X;

      //  2269         decs = 1

      DECS = 1;

      //  2270         ->top

      goto U_101B;

      //  2271  c(27): lit = 0;                                       ! arrayd

    case_C_27:;
      LIT = 0;

      //  2272         %IF pending # 0 %START

      if ((PENDING) == (0)) goto L_01D7;

        //  2273            pop lit

      POPLIT();

      //  2274            %UNLESS 0<lit<=dim limit %START

      {
        int tmp;
        if ((0) >= (tmp = LIT)) goto L_01D8;
        // Double-sided test on LIT (Part II)
        if (tmp <= (6)) goto L_01D9;
      }
    L_01D8:;

    //  2275               atom1 = error + 11;  %RETURN

      ATOM1 = 32768 + 11;
      _imp_return;

      //  2276            %FINISH

    L_01D9:;

    //  2277         %FINISH

    L_01D7:;

    //  2278         dim = lit

      DIM = LIT;

      //  2279         decl = decl + x;  decs = 1

      DECL = DECL + X;
      DECS = 1;

      //  2280         -> top

      goto U_101B;

      //  2281  c(37): x = x!subname;                                 !record

    case_C_37:;
      X = X | 2048;

      //  2282  c(36): lit = 0;                                       !string

    case_C_36:;
      LIT = 0;

      //  2283         %IF pending # 0 %START

      if ((PENDING) == (0)) goto L_01DA;

        //  2284           pop lit

      POPLIT();

      //  2285            %UNLESS 0 < lit <= 255 %START;              !max length wrong

      {
        int tmp;
        if ((0) >= (tmp = LIT)) goto L_01DB;
        // Double-sided test on LIT (Part II)
        if (tmp <= (255)) goto L_01DC;
      }
    L_01DB:;

    //  2286               atom1 = error+10;  %RETURN

      ATOM1 = 32768 + 10;
      _imp_return;

      //  2287            %FINISH

    L_01DC:;

    //  2288         %FINISH

    L_01DA:;

    //  2289         fdef = lit;                                    !format or length

      FDEF = LIT;

      //  2290  c(33): decl = x;                                      !switch

    case_C_33:;
      DECL = X;

      //  2291         decs = 1

      DECS = 1;

      //  2292         ->top

      goto U_101B;

      //  2293  c(39): decl = decl!spec;                              !spec

    case_C_39:;
      DECL = DECL | 128;

      //  2294         ocount = -1;                                   !no initialisation

      OCOUNT = -1;

      //  2295         spec mode = -1

      SPECMODE = -1;

      //  2296         ->top

      goto U_101B;

      //  2297  c(38): decl = 64+4;                                   !recordformat (spec)

    case_C_38:;
      DECL = 64 + 4;

      //  2298         order = 1

      ORDER = 1;

      //  2299         atom1 = x

      ATOM1 = X;

      //  2300         decl = decl!spec %if atom1 = 12;               !formatspec

      if ((ATOM1) != (12)) goto L_01DD;
      DECL = DECL | 128;
    L_01DD:;

    //  2301         fdef = tmax+1;                                 !format tag

      FDEF = TMAX + 1;

      //  2302         %return

      _imp_return;

      //  2303  c(175):id = id+1;  tag(x)_index = id;  %return;       !FSID

    case_C_175:;
      ID = ID + 1;
      TAG[X].INDEX = ID;
      _imp_return;

      //  2304  c(41): decs = 1;  decl = x!spec;  ->top;              !label

    case_C_41:;
      DECS = 1;
      DECL = X | 128;
      goto U_101B;

      //  2305  c(133):recid = 0;  rbase = tmin-1;                    !fname

    case_C_133:;
      RECID = 0;
      RBASE = TMIN - 1;

      //  2306         this = x

      THIS = X;

      //  2307         fm base = fdef;  format list = tmin

      FMBASE = FDEF;
      FORMATLIST = TMIN;

      //  2308         def(this);                      ->top

      DEF(THIS);
      goto U_101B;

      //  2309  c(148):fdef = 0 %AND ->top %IF next = 0;              !reclb

    case_C_148:;
      if ((NEXT) != (0)) goto L_01DE;
      FDEF = 0;
      goto U_101B;
    L_01DE:;

    //  2310         get next;                                      !skip name

      GETNEXT();

      //  2311         fdef = x

      FDEF = X;

      //  2312         ->top

      goto U_101B;

      //  2313  c(127):put('}');  ->top;                              !%POUT

    case_C_127:;
      PUT(125);
      goto U_101B;

      //  2314  c(126):put('{');  ->top;                              !%PIN

    case_C_126:;
      PUT(123);
      goto U_101B;

      //  2315
      //  2316  c(174):set bp;                                        !rangerb

    case_C_174:;
      SETBP();

      //  2317  c(171):                                               !fmlb

    case_C_171:;

    //  2318  c(172):                                               !fmrb

    case_C_172:;

    //  2319  c(173):put('~');  put(class-171+'A');  ->top;

    case_C_173:;
      PUT(126);
      PUT(CLASS - 171 + 65);
      goto U_101B;

      //  2320          !fmor
      //  2321  c(168):rbase = -rbase;                                !orrb

    case_C_168:;
      RBASE = -RBASE;

      //  2322         sstype = 0;  spec mode = 0

      SSTYPE = 0;
      SPECMODE = 0;

      //  2323
      //  2324  c(147):search base = 0;                               !recrb

    case_C_147:;
      SEARCHBASE = 0;

      //  2325         tag(this)_app = tmin

      TAG[THIS].APP = TMIN;

      //  2326         tag(this)_format = rbase

      TAG[THIS].FORMAT = RBASE;

      //  2327         ->top

      goto U_101B;

      //  2328
      //  2329  c(45):put('U') %IF x = 36;  ->top;                    !sign

    case_C_45:;
      if ((X) != (36)) goto L_01DF;
      PUT(85);
    L_01DF:;
      goto U_101B;

      //  2330  c(46):put('\');  ->top;                               !uop

    case_C_46:;
      PUT(92);
      goto U_101B;

      //  2331  c(47):                                                !mod

    case_C_47:;

    //  2332  c(48):                                                !dot

    case_C_48:;

    //  2333  c(42):                                                !op1

    case_C_42:;

    //  2334  c(43):                                                !op2

    case_C_43:;

    //  2335  c(44):put(operator(x));  ->top;                       !op3

    case_C_44:;
      PUT(OPERATOR[X - 1]);
      goto U_101B;

      //  2336
      //  2337  !conditions & jumps
      //  2338
      //  2339        %ROUTINE push(%INTEGER x)

      void PUSH(int X) {
        _imp_enter(PUSH);

        //  2340           %IF cnest(cp)&2 # x %START

        if ((CNEST[CP] & 2) == (X)) goto L_01E0;

          //  2341              cnest(cp) = cnest(cp)!1;  x = x+4

        CNEST[CP] = CNEST[CP] | 1;
        X = X + 4;

        //  2342           %FINISH

      L_01E0:;

      //  2343           clab = clab+1 %IF cnest(cp)&1 # 0

        if ((CNEST[CP] & 1) == (0)) goto L_01E1;
        CLAB = CLAB + 1;
      L_01E1:;

      //  2344           cnest(cp+1) = x;  cp = cp+1

        CNEST[CP + 1] = X;
        CP = CP + 1;

        //  2345        %END

        _imp_return;
        _imp_begin_backtrace(PUSH);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("X = %d\n", X);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of PUSH */

      //  2346
      //  2347        %ROUTINE pop label(%INTEGER mode)

      void POPLABEL(int MODE) {
        _imp_enter(POPLABEL);

        //  2348           lmode = dict(dmin)

        LMODE = DICT[DMIN - 1];

        //  2349           %IF lmode < 0 %OR lmode&1 # mode %START

        if ((LMODE) < (0)) goto L_01E2;
        if ((LMODE & 1) == (MODE)) goto L_01E3;
      L_01E2:;

      //  2350              fault(mode+8)

        FAULT(MODE + 8);

        //  2351           %FINISH %ELSE %START

        goto L_01E4;
      L_01E3:;

      //  2352              dmin = dmin+1;  label = label-3

        DMIN = DMIN + 1;
        LABEL = LABEL - 3;

        //  2353           %FINISH

      L_01E4:;

      //  2354        %END

        _imp_return;
        _imp_begin_backtrace(POPLABEL);
        _imp_diagf("\n\nArguments:\n\n");
        _imp_diagf("MODE = %d\n", MODE);
        _imp_diagf("\nLocal Variables:\n\n");
        _imp_end_backtrace();
      } /* end of POPLABEL */

      //  2355
      //  2356  c(56):                                         !and

    case_C_56:;

    //  2357  c(57):push(x);  ->top;                         !or

    case_C_57:;
      PUSH(X);
      goto U_101B;

      //  2358  c(58):cnest(cp) = cnest(cp)!!2;  ->top;        !not

    case_C_58:;
      CNEST[CP] = CNEST[CP] ^ 2;
      goto U_101B;

      //  2359
      //  2360  c(138):x = 128+32+16+4;                        !csep: treat like %WHILE

    case_C_138:;
      X = 128 + 32 + 16 + 4;

      //  2361  c(59):                                         !while

    case_C_59:;

    //  2362  c(60):%IF class = 138 %THEN op('f', label-1) %C

    case_C_60:;
      if ((CLASS) != (138)) goto L_01E5;
      OP(102, LABEL - 1);
      goto L_01E6;
    L_01E5:;
      DEFLAB(LABEL - 1);
    L_01E6:;

    //  2363+                       %ELSE def lab(label-1);  !until
    //  2364  c(166):                                        !runtil

    case_C_166:;

    //  2365  c(62):lmode = (lmode&(else!loop)) !(x>>3);     !cword

    case_C_62:;
      LMODE = LMODE & (8 | 16) | (unsigned int)X >> 3;

      //  2366        clab = label;  cp = 1;  cnest(1) = x&7

      CLAB = LABEL;
      CP = 1;
      CNEST[1] = X & 7;

      //  2367        ->top

      goto U_101B;

      //  2368  c(72):pop label(0);                            !repeat

    case_C_72:;
      POPLABEL(0);

      //  2369        def lab(label+1) %IF lmode&32 # 0;  ->atop

      if ((LMODE & 32) == (0)) goto L_01E7;
      DEFLAB(LABEL + 1);
    L_01E7:;
      goto U_101C;

      //  2370  c(69):pop label(1);               ->top;       !finish

    case_C_69:;
      POPLABEL(1);
      goto U_101B;

      //  2371  c(163):                                        !xelse

    case_C_163:;

    //  2372  c(70):pop label(1);                            !finish else ...

    case_C_70:;
      POPLABEL(1);

      //  2373        fault(7) %IF lmode&3 = 3;                !dangling else

      if ((LMODE & 3) != (3)) goto L_01E8;
      FAULT(7);
    L_01E8:;

    //  2374  c(68):lmode = (lmode&else)!3;                  !...else...

    case_C_68:;
      LMODE = LMODE & 8 | 3;

      //  2375        %IF access # 0 %START

      if ((ACCESS) == (0)) goto L_01E9;

        //  2376           op('F', label-1);  lmode = else!3

      OP(70, LABEL - 1);
      LMODE = 8 | 3;

      //  2377        %FINISH

    L_01E9:;

    //  2378        def lab(label)

      DEFLAB(LABEL);

      //  2379        ->top %IF next # 0

      if ((NEXT) == (0)) goto L_01EA;
      goto U_101B;
    L_01EA:;

    //  2380
    //  2381  c(120):                                        !%MSTART

    case_C_120:;

    //  2382  c(67):                                         !start

    case_C_67:;

    //  2383  c(71):                                         !cycle

    case_C_71:;

    //  2384  stcy: def lab(label-1) %AND lmode = loop %IF lmode = 0;!cycle

    U_101D:;
      if ((LMODE) != (0)) goto L_01EB;
      DEFLAB(LABEL - 1);
      LMODE = 16;
    L_01EB:;

    //  2385        dmin = dmin-1;  abandon(3) %IF dmin <= dmax

      DMIN = DMIN - 1;
      if ((DMIN) > (DMAX)) goto L_01EC;
      ABANDON(3);
    L_01EC:;

    //  2386        dict(dmin) = lmode

      DICT[DMIN - 1] = LMODE;

      //  2387        label = label+3

      LABEL = LABEL + 3;

      //  2388        %RETURN

      _imp_return;

      //  2389
      //  2390  c(64):fault(13) %IF dict(dmin) >= 0 %OR inhibit # 0;  !on event

    case_C_64:;
      if ((DICT[DMIN - 1]) >= (0)) goto L_01ED;
      if ((INHIBIT) == (0)) goto L_01EE;
    L_01ED:;
      FAULT(13);
    L_01EE:;

    //  2391        inhibit = 1

      INHIBIT = 1;

      //  2392        last array = tmax-1

      LASTARRAY = TMAX - 1;

      //  2393        n = 0

      N = 0;

      //  2394        n = 16_FFFF %IF pending = 0;      !* = all events

      if ((PENDING) != (0)) goto L_01EF;
      N = 65535;
    L_01EF:;

    //  2395        %WHILE pending > 0 %CYCLE

    L_01F0:;
      if ((PENDING) <= (0)) goto L_01F1;

        //  2396           pop lit;  fault(10) %IF lit&(\15) # 0;!too big

      POPLIT();
      if ((LIT & (~15)) == (0)) goto L_01F2;
      FAULT(10);
    L_01F2:;

    //  2397           j = 1<<lit

      J = ((int)1) << (((int)LIT) & 31);

      //  2398           dubious = 1 %IF n&j # 0

      if ((N & J) == (0)) goto L_01F3;
      DUBIOUS = 1;
    L_01F3:;

    //  2399           n = n!j;                              !construct bit mask

      N = N | J;

      //  2400        %REPEAT

      goto L_01F0;
    L_01F1:;

    //  2401        op('o', n);  op(',', label)

      OP(111, N);
      OP(44, LABEL);

      //  2402        lmode = then!1;  ->stcy

      LMODE = 4 | 1;
      goto U_101D;

      //  2403
      //  2404
      //  2405  c(104):op('J', tag(x)_index);                  !l

    case_C_104:;
      OP(74, TAG[X].INDEX);

      //  2406         inhibit = 1;            ->atop

      INHIBIT = 1;
      goto U_101C;

      //  2407  c(149):stats = stats-1;                        !lab

    case_C_149:;
      STATS = STATS - 1;

      //  2408         access = 1;  inhibit = 1

      ACCESS = 1;
      INHIBIT = 1;

      //  2409         fault(13) %IF x < last array;           !jump round array dec

      if ((X) >= (LASTARRAY)) goto L_01F4;
      FAULT(13);
    L_01F4:;

    //  2410         op('L', tag(x)_index);  ->top

      OP(76, TAG[X].INDEX);
      goto U_101B;

      //  2411
      //  2412  c(63):j = dmin;  l = label-3;                  !exit, continue

    case_C_63:;
      J = DMIN;
      L = LABEL - 3;

      //  2413        %CYCLE

    L_01F5:;

    //  2414           fault(7) %AND ->top %IF dict(j) < 0

      if ((DICT[J - 1]) >= (0)) goto L_01F6;
      FAULT(7);
      goto U_101B;
    L_01F6:;

    //  2415           %EXIT %IF dict(j)&1 = 0

      if ((DICT[J - 1] & 1) != (0)) goto L_01F7;
      goto L_01F8;
    L_01F7:;

    //  2416           j = j+1;  l = l-3

      J = J + 1;
      L = L - 3;

      //  2417        %REPEAT

      goto L_01F5;
    L_01F8:;

    //  2418        l = l+1 %IF x = 32;                      !continue

      if ((X) != (32)) goto L_01F9;
      L = L + 1;
    L_01F9:;

    //  2419        op('F', l)

      OP(70, L);

      //  2420        dict(j) = dict(j)!x;                     !show given

      DICT[J - 1] = DICT[J - 1] | X;

      //  2421        ->atop

      goto U_101C;

      //  2422
      //  2423  c(50):put('C');  ->cop;                        !acomp

    case_C_50:;
      PUT(67);
      goto U_101E;

      //  2424
      //  2425  c(49):

    case_C_49:;

    //  2426         %IF next # 0 %START;                     !comparator

      if ((NEXT) == (0)) goto L_01FA;

        //  2427            put('"');  push(0);                  !double sided

      PUT(34);
      PUSH(0);

      //  2428         %FINISH %ELSE %START

      goto L_01FB;
    L_01FA:;

    //  2429            put('?')

      PUT(63);

      //  2430         %FINISH

    L_01FB:;

    //  2431
    //  2432  cop:   x = x!!1 %IF cnest(cp)&2 # 0;           !invert the condition

    U_101E:;
      if ((CNEST[CP] & 2) == (0)) goto L_01FC;
      X = X ^ 1;
    L_01FC:;

    //  2433         j = cp;  l = clab

      J = CP;
      L = CLAB;

      //  2434         %WHILE cnest(j)&4 = 0 %CYCLE

    L_01FD:;
      if ((CNEST[J] & 4) != (0)) goto L_01FE;

        //  2435            j = j-1;  l = l-cnest(j)&1

      J = J - 1;
      L = L - (CNEST[J] & 1);

      //  2436         %REPEAT

      goto L_01FD;
    L_01FE:;

    //  2437         op(cc(x), l)

      OP(CC[X], L);

      //  2438         def lab(clab+1) %IF cnest(cp)&1 # 0

      if ((CNEST[CP] & 1) == (0)) goto L_01FF;
      DEFLAB(CLAB + 1);
    L_01FF:;

    //  2439         cp = cp-1

      CP = CP - 1;

      //  2440         clab = clab-cnest(cp)&1

      CLAB = CLAB - (CNEST[CP] & 1);

      //  2441         ->top

      goto U_101B;

      //  2442
      //  2443  c(78):                                              !fresult

    case_C_78:;

    //  2444  c(79):                                              !mresult

    case_C_79:;

    //  2445  c(80):   open = 0;                                  !return, true, false

    case_C_80:;
      OPEN = 0;

      //  2446  c(82):   access = 0;                                !stop

    case_C_82:;
      ACCESS = 0;

      //  2447  c(89):                                              !addop

    case_C_89:;

    //  2448  c(81):   put(x);  ->top;                            !monitor

    case_C_81:;
      PUT(X);
      goto U_101B;

      //  2449
      //  2450  c(65):   pop lit;  op('e', lit);  ->atop;  !signal

    case_C_65:;
      POPLIT();
      OP(101, LIT);
      goto U_101C;

      //  2451
      //  2452  c(51):   put('S');            ->top;                !eq

    case_C_51:;
      PUT(83);
      goto U_101B;

      //  2453  c(53):   put('j');            ->top;                !jam transfer

    case_C_53:;
      PUT(106);
      goto U_101B;

      //  2454  c(52):   put('Z');            ->top;                !eqeq

    case_C_52:;
      PUT(90);
      goto U_101B;

      //  2455
      //  2456  c(74):%IF level = 0 %START;                         !begin

    case_C_74:;
      if ((LEVEL) != (0)) goto L_0200;

        //  2457           %IF progmode <= 0 %THEN progmode = 1 %ELSE fault(7)

      if ((PROGMODE) > (0)) goto L_0201;
      PROGMODE = 1;
      goto L_0202;
    L_0201:;
      FAULT(7);
    L_0202:;

    //  2458           {Permit BEGIN after external defs}
    //  2459        %FINISH

    L_0200:;

    //  2460        spec mode = level+1

      SPECMODE = LEVEL + 1;

      //  2461        block x = 0

      BLOCKX = 0;

      //  2462        put('H');  %RETURN

      PUT(72);
      _imp_return;

      //  2463  c(77):perm = 0;  lines = 0;  stats = 0;             !endofperm

    case_C_77:;
      PERM = 0;
      LINES = 0;
      STATS = 0;

      //  2464  debug("close input    {input stream=".itos(input stream,0)."}")

      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "close input    {input stream=", _imp_strp(_imp_ITOS(_imp_INPUTSTREAM(), 0)), "}"));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );

      //  2465        close input

      _imp_CLOSEINPUT();

      //  2466  debug("select input(source=".itos(source,0).")")

      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "select input(source=", _imp_strp(_imp_ITOS(1, 0)), ")"));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );

      //  2467        select input(source);

      _imp_SELECTINPUT(1);

      //  2468        sym = nl

      SYM = 10;

      //  2469        list = list-1

      LIST = LIST - 1;

      //  2470        list = list -1 %if command & listbit # 0

      if ((COMMAND & 256) == (0)) goto L_0203;
      LIST = LIST - 1;
    L_0203:;

    //  2471        tbase = tmax;  tstart = tmax

      TBASE = TMAX;
      TSTART = TMAX;

      //  2472        %RETURN

      _imp_return;

      //  2473  c(76):%IF include # 0 %AND x = 0 %START;            !end of ...

    case_C_76:;
      if ((INCLUDE) == (0)) goto L_0204;
      if ((X) != (0)) goto L_0204;

        //  2474           lines = include;  sstype =  0;             !include

      LINES = INCLUDE;
      SSTYPE = 0;

      //  2475  debug("close input    {input stream=".itos(input stream,0)."}")

      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "close input    {input stream=", _imp_strp(_imp_ITOS(_imp_INPUTSTREAM(), 0)), "}"));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );

      //  2476           close input

      _imp_CLOSEINPUT();

      //  2477           list = include list

      LIST = INCLUDELIST;

      //  2478           include = 0;

      INCLUDE = 0;

      //  2479  debug("select input(source=".itos(source,0).")")

      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "select input(source=", _imp_strp(_imp_ITOS(1, 0)), ")"));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );

      //  2480  	 select input(source);

      _imp_SELECTINPUT(1);

      //  2481  	 sym = nl;

      SYM = 10;

      //  2482  	 %RETURN

      _imp_return;

      //  2483        %FINISH

    L_0204:;

    //  2484        ss = -1;                                      !prog/file

      SS = -1;

      //  2485  c(75):compile end(x);  %RETURN;                     !%END

    case_C_75:;
      COMPILEEND(X);
      _imp_return;

      //  2486
      //  2487  c(85):%IF x=0 %THEN control=lit %ELSE %START;     !control

    case_C_85:;
      if ((X) != (0)) goto L_0205;
      CONTROL = LIT;
      goto L_0206;
    L_0205:;

    //  2488           diag = lit&16_3FFF %IF lit>>14&3 = 1

      if (((unsigned int)LIT >> 14 & 3) != (1)) goto L_0207;
      DIAG = LIT & 16383;
    L_0207:;

    //  2489        %FINISH

    L_0206:;

    //  2490        op('z'-x, lit)

      OP(122 - X, LIT);

      //  2491        ->top

      goto U_101B;

      //  2492  c(83):list = list+x-2;   ->top;                     !%LIST/%ENDOFLIST

    case_C_83:;
      LIST = LIST + X - 2;
      goto U_101B;

      //  2493  c(84):reals ln = x;      ->top;                     !%REALS long/normal

    case_C_84:;
      REALSLN = X;
      goto U_101B;

      //  2494  c(86):%IF include # 0 %START;                       !include "file"

    case_C_86:;
      if ((INCLUDE) == (0)) goto L_0208;

        //  2495           fault(7);  %RETURN

      FAULT(7);
      _imp_return;

      //  2496        %FINISH

    L_0208:;

    //  2497        get next;                                  !sconst

      GETNEXT();

      //  2498        include file = string(x-16_4000+stbase)

      _imp_strcpy(&INCLUDEFILE, _imp_strp(*_imp_STRING(X - 16384 + STBASE)), /*max:*/ 63);

      //  2499        open input(3, include file)

      _imp_OPENINPUT(3,
                     /* clang-format off */
*({  _imp_string63 tmp = INCLUDEFILE;  (_imp_string255 *)&tmp;  })
                     /* clang-format on */
      );

      //  2500        include = lines;  lines = 0

      INCLUDE = LINES;
      LINES = 0;

      //  2501        include list = list

      INCLUDELIST = LIST;

      //  2502  debug("select input(3)")

      DEBUG(_imp_str_literal("select input(3)"));

      //  2503        select input(3);

      _imp_SELECTINPUT(3);

      //  2504        sym = nl

      SYM = 10;

      //  2505        ->top

      goto U_101B;

      //  2506
      //  2507  c(154):dimension = dimension+1;                     !dbsep

    case_C_154:;
      DIMENSION = DIMENSION + 1;

      //  2508         fault(11) %IF dimension = dim limit+1

      if ((DIMENSION) != (6 + 1)) goto L_0209;
      FAULT(11);
    L_0209:;

    //  2509         ->top

      goto U_101B;

      //  2510  c(145):set bp;                       ->top;         !crb

    case_C_145:;
      SETBP();
      goto U_101B;

      //  2511  c(146):set bp;                                      !rcrb

    case_C_146:;
      SETBP();

      //  2512  c(142):                                             !bplrb

    case_C_142:;

    //  2513         dimension = 1 %IF dimension = 0

      if ((DIMENSION) != (0)) goto L_020A;
      DIMENSION = 1;
    L_020A:;

    //  2514         op('d', dimension);  op(',', defs)

      OP(100, DIMENSION);
      OP(44, DEFS);

      //  2515         %IF class # 146 %START

      if ((CLASS) == (146)) goto L_020B;

        //  2516            set subs(defs)

      SETSUBS(DEFS);

      //  2517            last array = tmax-1

      LASTARRAY = TMAX - 1;

      //  2518            fault(13) %IF dict(dmin) >= 0 %OR inhibit # 0 %OR level=0

      if ((DICT[DMIN - 1]) >= (0)) goto L_020C;
      if ((INHIBIT) != (0)) goto L_020C;
      if ((LEVEL) != (0)) goto L_020D;
    L_020C:;
      FAULT(13);
    L_020D:;

    //  2519         %FINISH

    L_020B:;

    //  2520         dimension = 0;  defs = 0

      DIMENSION = 0;
      DEFS = 0;

      //  2521         ->top

      goto U_101B;

      //  2522  c(128):id = dupid;  ->top;                          !EDUP

    case_C_128:;
      ID = DUPID;
      goto U_101B;

      //  2523  c(130):block x = x

    case_C_130:;
      BLOCKX = X;

      //  2524         op('F', 0) %IF decl&spec = 0 %AND level # 0; !jump round proc

      if ((DECL & 128) != (0)) goto L_020E;
      if ((LEVEL) == (0)) goto L_020E;
      OP(70, 0);
    L_020E:;

    //  2525  c(125):dupid = id;                                  !%DUP

    case_C_125:;
      DUPID = ID;

      //  2526  c(90): def(x);  ->top;                              !ident

    case_C_90:;
      DEF(X);
      goto U_101B;

      //  2527  c(131):                                             !cident

    case_C_131:;

    //  2528         %IF tag(x)_flags&(2_1111111+const bit) = iform+const bit %START

      if ((TAG[X].FLAGS & 127 + 8192) != (17 + 8192)) goto L_020F;

        //  2529            tag(x)_format = lit

      TAG[X].FORMAT = LIT;

      //  2530         %FINISH %ELSE %START

      goto L_0210;
    L_020F:;

    //  2531            set const(lit) %IF pending # 0

      if ((PENDING) == (0)) goto L_0211;
      SETCONST(LIT);
    L_0211:;

    //  2532            def(x)

      DEF(X);

      //  2533           put('A'); putlong(1)

      PUT(65);
      PUTLONG(1);

      //  2534         %FINISH

    L_0210:;

    //  2535         cident = x

      CIDENT = X;

      //  2536         ->top

      goto U_101B;

      //  2537  c(124):dubious = 1 %IF tag(cident)_flags&prot # 0; !%DUBIOUS

    case_C_124:;
      if ((TAG[CIDENT].FLAGS & 256) == (0)) goto L_0212;
      DUBIOUS = 1;
    L_0212:;

    //  2538         ->top

      goto U_101B;

      //  2539  c(97):                                              !f

    case_C_97:;

    //  2540  c(98):                                              !m

    case_C_98:;

    //  2541  c(99):                                              !p

    case_C_99:;

    //  2542  c(96): call;  ->top;                                !r

    case_C_96:;
      CALL();
      goto U_101B;

      //  2543
      //  2544  c(165):                                             !nlab

    case_C_165:;

    //  2545  c(100):                                             !rp

    case_C_100:;

    //  2546  c(101):                                             !fp

    case_C_101:;

    //  2547  c(102):                                             !mp

    case_C_102:;

    //  2548  c(103):                                             !pp

    case_C_103:;

    //  2549  c(91):                                              !v

    case_C_91:;

    //  2550  c(92):                                              !n

    case_C_92:;

    //  2551  c(106):                                             !a

    case_C_106:;

    //  2552  c(107):                                             !an

    case_C_107:;

    //  2553  c(108):                                             !na

    case_C_108:;

    //  2554  c(109):                                             !nan

    case_C_109:;

    //  2555        k = tag(x)_index

      K = TAG[X].INDEX;

      //  2556        %IF k < 0 %THEN op('n', -k) %ELSE op('@', k)

      if ((K) >= (0)) goto L_0213;
      OP(110, -K);
      goto L_0214;
    L_0213:;
      OP(64, K);
    L_0214:;

    //  2557        ->top

      goto U_101B;

      //  2558  c(121):set const(0);  ->top;                        !special for zero

    case_C_121:;
      SETCONST(0);
      goto U_101B;

      //  2559  c(167):put('G');  ->pstr;                           !aconst (alias)

    case_C_167:;
      PUT(71);
      goto U_101F;

      //  2560  c(const):                                           !const

    case_C_93:;

    //  2561         %IF x < 0 %START;                            !constinteger

      if ((X) >= (0)) goto L_0215;

        //  2562            set const(tag(-x)_format);  ->top

      SETCONST(TAG[-X].FORMAT);
      goto U_101B;

      //  2563         %FINISH

    L_0215:;

    //  2564         %IF x&16_4000 # 0 %START;                    !strings

      if ((X & 16384) == (0)) goto L_0216;

        //  2565            put('''')

      PUT(39);

      //  2566  pstr:     x = x-16_4000+stbase

    U_101F:;
      X = X - 16384 + STBASE;

      //  2567            k = byteinteger(x)

      K = *_imp_BYTEINTEGER(X);

      //  2568           putblock(k+1, byteinteger(x))

      PUTBLOCK(K + 1, _imp_BYTEINTEGER(X));

      //  2569           -> top

      goto U_101B;

      //  2570         %FINISH

    L_0216:;

    //  2571         %IF x&16_2000 # 0 %START;                    !real

      if ((X & 8192) == (0)) goto L_0217;

        //  2572            x = x-16_2000+stbase

      X = X - 8192 + STBASE;

      //  2573            k = byteinteger(x)

      K = *_imp_BYTEINTEGER(X);

      //  2574            op('D', k);  put(',')

      OP(68, K);
      PUT(44);

      //  2575            k = k+x

      K = K + X;

      //  2576            %CYCLE

    L_0218:;

    //  2577               ->top %IF x = k

      if ((X) != (K)) goto L_0219;
      goto U_101B;
    L_0219:;

    //  2578               x = x+1;  j = byteinteger(x)

      X = X + 1;
      J = *_imp_BYTEINTEGER(X);

      //  2579               %IF j = '@' %START

      if ((J) != (64)) goto L_021A;

        //  2580                  op('@', litpool(byteinteger(x+1)));  ->top

      OP(64, LITPOOL[*_imp_BYTEINTEGER(X + 1)]);
      goto U_101B;

      //  2581               %FINISH

    L_021A:;

    //  2582               put(j)

      PUT(J);

      //  2583            %REPEAT

      goto L_0218;

      //  2584         %FINISH

    L_0217:;

    //  2585         set const(lit pool(x))

      SETCONST(LITPOOL[X]);

      //  2586         ->top

      goto U_101B;

      //  2587
      //  2588  c(137):put('i');               ->top;         !asep

    case_C_137:;
      PUT(105);
      goto U_101B;

      //  2589  c(141):put('a');               ->top;         !arb

    case_C_141:;
      PUT(97);
      goto U_101B;

      //  2590
      //  2591  !own arrays
      //  2592
      //  2593  c(132):ocount = ub-lb+1

    case_C_132:;
      OCOUNT = UB - LB + 1;

      //  2594         def(x);                               !oident

      DEF(X);

      //  2595         dimension = 1;  set subs(1)

      DIMENSION = 1;
      SETSUBS(1);

      //  2596         %IF next = 0 %START;                  !no initialisation

      if ((NEXT) != (0)) goto L_021B;

        //  2597            %IF ocount > 0 %start

      if ((OCOUNT) <= (0)) goto L_021C;

        //  2598              put('A'); putlong(ocount)

      PUT(65);
      PUTLONG(OCOUNT);

      //  2599              %finish

    L_021C:;

    //  2600            ocount = -1

      OCOUNT = -1;

      //  2601         %FINISH %ELSE %START;                 !initialisation given

      goto L_021D;
    L_021B:;

    //  2602            get next

      GETNEXT();

      //  2603         %FINISH

    L_021D:;

    //  2604         ->top

      goto U_101B;

      //  2605  c(162):lit = ocount;  ->ins;                 !indef

    case_C_162:;
      LIT = OCOUNT;
      goto U_1020;

      //  2606  c(143):pop lit;                              !orb

    case_C_143:;
      POPLIT();

      //  2607  ins:   fault(10) %AND lit = 0 %IF lit < 0

    U_1020:;
      if ((LIT) >= (0)) goto L_021E;
      FAULT(10);
      LIT = 0;
    L_021E:;

    //  2608         get next

      GETNEXT();

      //  2609         ->inst

      goto U_1021;

      //  2610  c(139):                                      !osep (x=19)

    case_C_139:;

    //  2611  c(153):lit = 1

    case_C_153:;
      LIT = 1;

      //  2612  inst:  pop def %IF pending # 0;              !ownt (x=0)

    U_1021:;
      if ((PENDING) == (0)) goto L_021F;
      POPDEF();
    L_021F:;

    //  2613        put('A'); putlong(lit)

      PUT(65);
      PUTLONG(LIT);

      //  2614         ocount = ocount-lit

      OCOUNT = OCOUNT - LIT;

      //  2615         %IF ocount >= 0 %START

      if ((OCOUNT) < (0)) goto L_0220;

        //  2616            ->top %IF x # 0;      !more coming

      if ((X) == (0)) goto L_0221;
      goto U_101B;
    L_0221:;

    //  2617            ocount = -1 %AND %RETURN %IF ocount = 0;  !all done

      if ((OCOUNT) != (0)) goto L_0222;
      OCOUNT = -1;
      _imp_return;
    L_0222:;

    //  2618         %FINISH

    L_0220:;

    //  2619         fault(11);  %RETURN

      FAULT(11);
      _imp_return;

      //  2620
      //  2621  c(swit):op('W', tag(x)_index);  inhibit = 1;  ->atop

    case_C_105:;
      OP(87, TAG[X].INDEX);
      INHIBIT = 1;
      goto U_101C;

      //  2622  c(134):def(x);                               !swid

    case_C_134:;
      DEF(X);

      //  2623         n = ub-lb+1

      N = UB - LB + 1;

      //  2624         n = (n+15)>>4;                        !slots needed (includes zero)

      N = (unsigned int)N + 15 >> 4;

      //  2625         j = dmax;  dmax = dmax+n+2

      J = DMAX;
      DMAX = DMAX + N + 2;

      //  2626         abandon(1) %IF dmax >= dmin

      if ((DMAX) < (DMIN)) goto L_0223;
      ABANDON(1);
    L_0223:;

    //  2627         tag(x)_format = j

      TAG[X].FORMAT = J;

      //  2628         dict(j) = lb;  dict(j+1) = ub

      DICT[J - 1] = LB;
      DICT[J + 1 - 1] = UB;

      //  2629         %CYCLE

    L_0224:;

    //  2630            n = n-1

      N = N - 1;

      //  2631            ->top %IF n < 0

      if ((N) >= (0)) goto L_0225;
      goto U_101B;
    L_0225:;

    //  2632            j = j+1;  dict(j+1) = 0

      J = J + 1;
      DICT[J + 1 - 1] = 0;

      //  2633         %REPEAT

      goto L_0224;

      //  2634  c(151):stats = stats-1;                      !slab

    case_C_151:;
      STATS = STATS - 1;

      //  2635         fault(7) %AND %RETURN %IF x < tbase

      if ((X) >= (TBASE)) goto L_0226;
      FAULT(7);
      _imp_return;
    L_0226:;

    //  2636         %IF pending # 0 %START;               !explicit label

      if ((PENDING) == (0)) goto L_0227;

        //  2637            def s lab(pstack(1))

      DEFSLAB(PSTACK[0]);

      //  2638         %FINISH %ELSE %START

      goto L_0228;
    L_0227:;

    //  2639            fault(4) %AND %RETURN %IF tag(x)_app # 0

      if ((TAG[X].APP) == (0)) goto L_0229;
      FAULT(4);
      _imp_return;
    L_0229:;

    //  2640            tag(x)_app = 1

      TAG[X].APP = 1;

      //  2641            n = tag(x)_format

      N = TAG[X].FORMAT;

      //  2642            %FOR j = dict(n), 1, dict(n+1) %CYCLE;   !imp77:

      // %for J = DICT[N - 1], 1, DICT[N + 1 - 1] %cycle
      {
        int _initial = DICT[N - 1], _final = DICT[N + 1 - 1];
        if (invalid_for_loop(_initial, 1, _final))
          _imp_signal(5, 1, 0, "Illegal cycle J = DICT[N - 1], 1, DICT[N + 1 - 1]");
        J = _initial - (1);
      L_022A:
        if (J == _final) goto L_022B;
        J += 1;

        //  2643               def s lab(j);                         !imp77:

        DEFSLAB(J);

        //  2644            %REPEAT;                                 !imp77:

        goto L_022A;
      }

    L_022B:;

    //  2645         %FINISH

    L_0228:;

    //  2646         inhibit = 1

      INHIBIT = 1;

      //  2647         %RETURN

      _imp_return;

      //  2648
      //  2649  c(140):put('p');             ->top;          !psep

    case_C_140:;
      PUT(112);
      goto U_101B;

      //  2650  c(144):put('p');  put('E');  ->top;          !prb

    case_C_144:;
      PUT(112);
      PUT(69);
      goto U_101B;

      //  2651
      //  2652  !constant expressions
      //  2653
      //  2654  c(155):                                      !pconst

    case_C_155:;

    //  2655         %IF x < 0 %THEN lit = tag(-x)_format %ELSE lit = lit pool(x)

      if ((X) >= (0)) goto L_022D;
      LIT = TAG[-X].FORMAT;
      goto L_022E;
    L_022D:;
      LIT = LITPOOL[X];
    L_022E:;

    //  2656         pending = pending+1;     pstack(pending) = lit;  ->top

      PENDING = PENDING + 1;
      PSTACK[PENDING - 1] = LIT;
      goto U_101B;

      //  2657  c(156):lit = pstack(pending);  lit = -lit %IF lit < 0

    case_C_156:;
      LIT = PSTACK[PENDING - 1];
      if ((LIT) >= (0)) goto L_022F;
      LIT = -LIT;
    L_022F:;

    //  2658                                  pstack(pending) = lit;  ->top;  !cmod

      PSTACK[PENDING - 1] = LIT;
      goto U_101B;

      //  2659  c(157):-> top %if X#36          { JGH fix to %const %integer X = +1 => -1 bug }

    case_C_157:;
      if ((X) == (36)) goto L_0230;
      goto U_101B;
    L_0230:;

    //  2660         lit = -pstack(pending);  pstack(pending) = lit;  ->top;  !csign

      LIT = -PSTACK[PENDING - 1];
      PSTACK[PENDING - 1] = LIT;
      goto U_101B;

      //  2661  c(158):lit = \pstack(pending);  pstack(pending) = lit;  ->top;  !cuop

    case_C_158:;
      LIT = (~PSTACK[PENDING - 1]);
      PSTACK[PENDING - 1] = LIT;
      goto U_101B;

      //  2662  c(159):                                      !cop1

    case_C_159:;

    //  2663  c(160):                                      !cop2

    case_C_160:;

    //  2664  c(161):pending = pending-1;                  !cop3

    case_C_161:;
      PENDING = PENDING - 1;

      //  2665         lit2 = pstack(pending+1);  lit = pstack(pending)

      LIT2 = PSTACK[PENDING + 1 - 1];
      LIT = PSTACK[PENDING - 1];

      //  2666         ->litop(x>>2)

      LITOP_line = __LINE__;
      LITOP_file = __FILE__;
      LITOP_index = (unsigned int)X >> 2;
      goto case_LITOP_dispatch;

      //  2667  litop(*):debug("* Switch label not set: litop(".itos(x>>2,0).") {x=".itos(x,2)."}"); %stop

    case_LITOP_default:;
      DEBUG(
          /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s%S%s", "* Switch label not set: litop(", _imp_strp(_imp_ITOS((unsigned int)X >> 2, 0)), ") {x=", _imp_strp(_imp_ITOS(X, 2)), "}"));  (_imp_string255 *)&tmp;  })
          /* clang-format on */
      );
      _imp_stop(0);

      //  2668  litop(10):lit = lit*lit2;   ->setl

    case_LITOP_10:;
      LIT = LIT * LIT2;
      goto U_1022;

      //  2669  litop(12):

    case_LITOP_12:;

    //  2670  litop(3):n = 1;                              !lit = lit\\lit2

    case_LITOP_3:;
      N = 1;

      //  2671           fault(10) %IF lit2 < 0

      if ((LIT2) >= (0)) goto L_0231;
      FAULT(10);
    L_0231:;

    //  2672           %WHILE lit2 > 0 %CYCLE

    L_0232:;
      if ((LIT2) <= (0)) goto L_0233;

        //  2673              lit2 = lit2-1

      LIT2 = LIT2 - 1;

      //  2674              n = n*lit

      N = N * LIT;

      //  2675           %REPEAT

      goto L_0232;
    L_0233:;

    //  2676           lit = n;           ->setl

      LIT = N;
      goto U_1022;

      //  2677  litop(1):lit = lit<<lit2;   ->setl

    case_LITOP_1:;
      LIT = ((int)LIT) << (((int)LIT2) & 31);
      goto U_1022;

      //  2678  litop(2):lit = lit>>lit2;   ->setl

    case_LITOP_2:;
      LIT = (unsigned int)LIT >> LIT2;
      goto U_1022;

      //  2679  litop(5):lit = lit&lit2;    ->setl

    case_LITOP_5:;
      LIT = LIT & LIT2;
      goto U_1022;

      //  2680  litop(11):

    case_LITOP_11:;

    //  2681  litop(4):%IF lit2 = 0 %THEN fault(10) %ELSE lit = lit//lit2

    case_LITOP_4:;
      if ((LIT2) != (0)) goto L_0234;
      FAULT(10);
      goto L_0235;
    L_0234:;
      LIT = ((long)LIT / (long)LIT2);
    L_0235:;

    //  2682                              ->setl

      goto U_1022;

      //  2683  litop(8):lit = lit+lit2;    ->setl

    case_LITOP_8:;
      LIT = LIT + LIT2;
      goto U_1022;

      //  2684  litop(9):lit = lit-lit2;    ->setl

    case_LITOP_9:;
      LIT = LIT - LIT2;
      goto U_1022;

      //  2685  litop(6):lit = lit!lit2;    ->setl

    case_LITOP_6:;
      LIT = LIT | LIT2;
      goto U_1022;

      //  2686  litop(7):lit = lit!!lit2

    case_LITOP_7:;
      LIT = LIT ^ LIT2;

      //  2687
      //  2688  setl: pstack(pending) = lit;  ->top

    U_1022:;
      PSTACK[PENDING - 1] = LIT;
      goto U_101B;

      //  2689
      //  2690  c(170):            !option string

    case_C_170:;

    //  2691     put('~'); put('D')

      PUT(126);
      PUT(68);

      //  2692     ->pstr

      goto U_101F;

      //  2693
      //  2694  !string resolution
      //  2695
      //  2696  c(135):resln = 2;         ->top;           !dotl

    case_C_135:;
      RESLN = 2;
      goto U_101B;

      //  2697  c(136):resln = resln+1;   ->top;           !dotr

    case_C_136:;
      RESLN = RESLN + 1;
      goto U_101B;

      //  2698  c(55): op('r', resln);    resln = 0; ->top;           !resop

    case_C_55:;
      OP(114, RESLN);
      RESLN = 0;
      goto U_101B;

      //  2699  c(164):op('r', resln+4);  resln = 0;         !cresop

    case_C_164:;
      OP(114, RESLN + 4);
      RESLN = 0;

      //  2700  c(122):x = 6;            ->cop;            !%PRED

    case_C_122:;
      X = 6;
      goto U_101E;

      //  2701  c(87):set const(pstack(1));            !mass

    case_C_87:;
      SETCONST(PSTACK[0]);

      //  2702        put('P');  ->top

      PUT(80);
      goto U_101B;

      //  2703     %END


    case_C_dispatch:
      if (C_index < 0 || C_index > 180)
        _imp_signalf(6, 3, C_index, "->C(%d) out of bounds at %s line %d", C_index, C_file, C_line);
      goto *C[C_index - 0];

    case_LITOP_dispatch:
      if (LITOP_index < 1 || LITOP_index > 12)
        _imp_signalf(6, 3, LITOP_index, "->LITOP(%d) out of bounds at %s line %d", LITOP_index, LITOP_file, LITOP_line);
      goto *LITOP[LITOP_index - 1];
      _imp_begin_backtrace(COMPILE);
      _imp_diagf("\nLocal Variables:\n\n");
      _imp_bt_int(LMODE);
      _imp_bt_int(CLAB);
      _imp_bt_int(DUPID);
      _imp_bt_int(RESLN);
      _imp_bt_int(LASTDEF);
      _imp_bt_int(LB);
      _imp_bt_int(UB);
      _imp_bt_int(CP);
      _imp_bt_int(ORD);
      _imp_bt_int(NEXT);
      _imp_bt_int(LINK);
      _imp_bt_int(J);
      _imp_bt_int(K);
      _imp_bt_int(N);
      _imp_bt_int(DONE);
      _imp_bt_int(CLASS);
      _imp_bt_int(LIT2);
      _imp_bt_int(DEFS);
      _imp_bt_int(DECS);
      _imp_bt_int(CIDENT);
      _imp_bt_int(PENDING);
      _imp_diagf("NAME = \"%.*s\"\n", NAME.cstr.len, NAME.cstr.s);
      _imp_bt_int(COUNT);
      _imp_end_backtrace();
    } /* end of COMPILE */

    //  2704
    //  2705  %END;                                      !of compile block

    _imp_return;
    _imp_begin_backtrace(COMPILEBLOCK);
    _imp_diagf("\n\nArguments:\n\n");
    _imp_diagf("LEVEL = %d\n", LEVEL);
    _imp_diagf("BLOCKTAG = %d\n", BLOCKTAG);
    _imp_diagf("DMIN = %d\n", DMIN);
    _imp_diagf("TMAX = %d\n", TMAX);
    _imp_diagf("ID = %d\n", ID);
    _imp_diagf("\nLocal Variables:\n\n");
    _imp_bt_int(OPEN);
    _imp_bt_int(DBASE);
    _imp_bt_int(TBASE);
    _imp_bt_int(TSTART);
    _imp_bt_int(LABEL);
    _imp_bt_int(LASTARRAY);
    _imp_bt_int(ACCESS);
    _imp_bt_int(INHIBIT);
    if (BFLAGS == 0) {
      _imp_diagf("BFLAGS @[<NIL>]\n");
    } else if (_imp_unassigned(BFLAGS)) {
      _imp_diagf("BFLAGS @[<UNASSIGNED POINTER>]\n");
    } else {
      if (_imp_unassigned(*BFLAGS)) {
        _imp_diagf("BFLAGS @[%p] = <UNASSIGNED INTEGER>\n", BFLAGS);
      } else {
        _imp_diagf("BFLAGS @[%p] = %d\n", BFLAGS, *(int *)BFLAGS);
      }
    }
    _imp_bt_int(BLOCKTYPE);
    _imp_bt_int(BLOCKFORM);
    _imp_bt_int(BLOCKFM);
    _imp_bt_int(BLOCKOTYPE);
    if (BLOCKAPP == 0) {
      _imp_diagf("BLOCKAPP @[<NIL>]\n");
    } else if (_imp_unassigned(BLOCKAPP)) {
      _imp_diagf("BLOCKAPP @[<UNASSIGNED POINTER>]\n");
    } else {
      if (_imp_unassigned(*BLOCKAPP)) {
        _imp_diagf("BLOCKAPP @[%p] = <UNASSIGNED INTEGER>\n", BLOCKAPP);
      } else {
        _imp_diagf("BLOCKAPP @[%p] = %d\n", BLOCKAPP, *(int *)BLOCKAPP);
      }
    }
    _imp_bt_int(L);
    _imp_bt_int(NEWAPP);
    _imp_end_backtrace();
  } /* end of COMPILEBLOCK */

  //  2706
  //  2707  debug("ENTERED PASS1  object tank=".itos(object tank,0)." *************")

  DEBUG(
      /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "ENTERED PASS1  object tank=", _imp_strp(_imp_ITOS(OBJECTTANK, 0)), " *************"));  (_imp_string255 *)&tmp;  })
      /* clang-format on */
  );

  //  2708
  //  2709     %ON 9 %START

  if (!_imp_on_event(9)) goto L_0236;

    //  2710  debug("[3]%ON 9 %START:")

  DEBUG(_imp_str_literal("[3]%ON 9 %START:"));

  //  2711        abandon(5)

  ABANDON(5);

  //  2712     %FINISH

L_0236:;

//  2713
//  2714     selectoutput(listing)                               ;!!!!!!!!!!!!!!!! THIS FAILS

  _imp_SELECTOUTPUT(2);

  //  2715  !debug("A: object tank=".itos(object tank,0))
  //  2716     %if command & list bit # 0 %start

  if ((COMMAND & 256) == (0)) goto L_0237;

    //  2717        printstring("

  _imp_printf("%s%S%s%S", "\n      Computer Science VAX-11 IMP77 Compiler.  Version 8.02\n\n            Compiled on ",
              _imp_strp(_imp_DATE()), " at ", _imp_strp(_imp_TIME()));

  //  2718+       Computer Science VAX-11 IMP77 Compiler.  Version 8.02
  //  2719+
  //  2720+             Compiled on ".date." at ".time)
  //  2721  !            Compiled on ??/??/??")
  //  2722        !printstring(date)
  //  2723  !      printstring(" at ??:??:??")
  //  2724        !printstring(time)
  //  2725        newlines(2)

  _imp_NEWLINES(2);

  //  2726  debug("select input(1)")

  DEBUG(_imp_str_literal("select input(1)"));

  //  2727        select input(1)

  _imp_SELECTINPUT(1);

  //  2728        printstring("   Source file: ".infilename)

  _imp_printf("%s%S", "   Source file: ", _imp_strp(_imp_INFILENAME()));

  //  2729        newline;  newline

  _imp_NEWLINE();
  _imp_NEWLINE();

  //  2730  !debug("B: object tank=".itos(object tank,0))
  //  2731     %finish

L_0237:;

//  2732  !debug("C: object tank=".itos(object tank,0))
//  2733  debug("select input(prims=".itos(prims,0).")")

  DEBUG(
      /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "select input(prims=", _imp_strp(_imp_ITOS(2, 0)), ")"));  (_imp_string255 *)&tmp;  })
      /* clang-format on */
  );

  //  2734     select input(prims)

  _imp_SELECTINPUT(2);

  //  2735  debug("select output tank(object tank=".itos(object tank,0).")")

  DEBUG(
      /* clang-format off */
*({  _imp_string255 tmp = *_imp_strp(_imp_strconcat("%s%S%s", "select output tank(object tank=", _imp_strp(_imp_ITOS(OBJECTTANK, 0)), ")"));  (_imp_string255 *)&tmp;  })
      /* clang-format on */
  );

  //  2736     select output tank(object tank)

  SELECTOUTPUTTANK(OBJECTTANK);

  //  2737     tag(max tag) = 0;                       !%BEGIN defn

  TAG[1200] = (struct TAGFM){0};

  //  2738     tag(0) = 0;  tag(0)_flags = 7;          !%BEGIN tag!

  TAG[0] = (struct TAGFM){0};
  TAG[0].FLAGS = 7;

  //  2739     %FOR x = 0, 1, max names %CYCLE;   !imp77:

  // %for X = 0, 1, 2047 %cycle
  {
    X = -1;
  L_0238:
    if (X == 2047) goto L_0239;
    X += 1;

    //  2740        hash(x) = 0;                    !imp77:

    HASH[X] = 0;

    //  2741     %REPEAT;                           !imp77:

    goto L_0238;
  }

L_0239:;

//  2742     include file = ""

  _imp_strcpy(&INCLUDEFILE, _imp_strp(_imp_str_literal("")), /*max:*/ 63);

  //  2743     put('l'); putword(0)

  PUT(108);
  PUTWORD(0);

  //  2744     compile block(0, 0, max dict, 0, 0)

  COMPILEBLOCK(0, 0, 9000, 0, 0);

  //  2745     %result = -faulty %IF faulty # 0;   !imp77: %ENDOFPROGRAM

  if ((FAULTY) == (0)) goto L_023B;
  _imp_result(-FAULTY);
L_023B:;

//  2746     %result = stats

  _imp_result(STATS);

  //  2747  %end

  _imp_begin_backtrace(PASS1);
  _imp_diagf("\n\nArguments:\n\n");
  _imp_diagf("OBJECTTANK = %d\n", OBJECTTANK);
  _imp_diagf("\nLocal Variables:\n\n");
  _imp_diagf("ERRORMESSAGE = \"%.*s\"\n", ERRORMESSAGE.cstr.len, ERRORMESSAGE.cstr.s);
  _imp_diagf("VERSION = \"%.*s\"\n", VERSION.cstr.len, VERSION.cstr.s);
  _imp_bt_int(COMMAND);
  _imp_bt_int(SPARENAMES);
  _imp_bt_int(CLASS);
  _imp_bt_int(X);
  _imp_bt_int(ATOM1);
  _imp_bt_int(ATOM2);
  _imp_bt_int(SUBATOM);
  _imp_bt_int(TYPE);
  _imp_bt_int(APP);
  _imp_bt_int(FORMAT);
  _imp_bt_int(HASHVALUE);
  _imp_bt_int(FAULTY);
  _imp_bt_int(FAULTRATE);
  _imp_bt_int(LINES);
  _imp_bt_int(TEXTLINE);
  _imp_bt_int(MARGIN);
  _imp_bt_int(ERRORMARGIN);
  _imp_bt_int(ERRORSYM);
  _imp_bt_int(COLUMN);
  _imp_bt_int(STATS);
  _imp_bt_int(MONPOS);
  _imp_bt_int(SYM);
  _imp_bt_int(SYMTYPE);
  _imp_bt_int(QUOTE);
  _imp_bt_int(ENDMARK);
  _imp_bt_int(CONT);
  _imp_bt_int(CSYM);
  _imp_bt_int(DECL);
  _imp_bt_int(DIM);
  _imp_bt_int(SPECGIVEN);
  _imp_bt_int(ESCAPECLASS);
  _imp_bt_int(PROTECTION);
  _imp_bt_int(ATOMFLAGS);
  _imp_bt_int(OTYPE);
  _imp_bt_int(REALSLN);
  _imp_bt_int(LAST1);
  _imp_bt_int(GENTYPE);
  _imp_bt_int(PTYPE);
  _imp_bt_int(PAPP);
  _imp_bt_int(PFORMAT);
  _imp_bt_int(FORCE);
  _imp_bt_int(G);
  _imp_bt_int(GG);
  _imp_bt_int(MAPGG);
  _imp_bt_int(FDEF);
  _imp_bt_int(THIS);
  _imp_bt_int(NMIN);
  _imp_bt_int(NMAX);
  _imp_bt_int(RBASE);
  _imp_bt_int(STBASE);
  _imp_bt_int(GMIN);
  _imp_bt_int(DMAX);
  _imp_bt_int(TMIN);
  _imp_bt_int(SS);
  _imp_diagf("INCLUDEFILE = \"%.*s\"\n", INCLUDEFILE.cstr.len, INCLUDEFILE.cstr.s);
  _imp_bt_int(INCLUDELIST);
  _imp_bt_int(INCLUDE);
  _imp_bt_int(PERM);
  _imp_bt_int(PROGMODE);
  _imp_bt_int(SSTYPE);
  _imp_bt_int(SPECMODE);
  _imp_bt_int(OCOUNT);
  _imp_bt_int(LIMIT);
  _imp_bt_int(COPY);
  _imp_bt_int(ORDER);
  _imp_bt_int(FORWARN);
  _imp_bt_int(DUBIOUS);
  _imp_bt_int(DP);
  _imp_bt_int(POS1);
  _imp_bt_int(POS2);
  _imp_bt_int(POS);
  _imp_bt_int(DIMENSION);
  _imp_bt_int(LOCAL);
  _imp_bt_int(FMBASE);
  _imp_bt_int(SEARCHBASE);
  _imp_bt_int(FORMATLIST);
  _imp_bt_int(RECID);
  if (CURRENTCHAR == 0) {
    _imp_diagf("CURRENTCHAR @[<NIL>]\n");
  } else if (_imp_unassigned(CURRENTCHAR)) {
    _imp_diagf("CURRENTCHAR @[<UNASSIGNED POINTER>]\n");
  } else {
    if (_imp_unassigned(*CURRENTCHAR)) {
      _imp_diagf("CURRENTCHAR @[%p] = <UNASSIGNED INTEGER>\n", CURRENTCHAR);
    } else {
      _imp_diagf("CURRENTCHAR @[%p] = %d\n", CURRENTCHAR, *(int *)CURRENTCHAR);
    }
  }
  _imp_bt_int(LIT);
  _imp_bt_int(LP);
  _imp_bt_int(BLOCKX);
  _imp_bt_int(LIST);
  _imp_bt_int(CONTROL);
  _imp_bt_int(DIAG);
  _imp_bt_int(GMAX);
  _imp_end_backtrace();
} /* end of PASS1 */

// ?SYSMESS unused
//  2748
//  2749  %begin

int main(int argc, char **argv) { /*%begin*/
  _imp_enter(main);
  _imp_initialise(argc, argv);

  //  2750    %integer rc

  int RC = 0xFEFEFEFE;

  //  2751    rc = pass1(0)

  RC = PASS1(0);

  //  2752  %end

  _imp_stop(0);
end_0:;
  _imp_begin_backtrace(main);
  _imp_diagf("\n\nArguments:\n\n");
  _imp_diagf("ARGC = %d\n", argc);
  _imp_diagf("ARGV @[%p]\n", argv);
  for (int i = 0; i < argc; i++) {
    _imp_diagf("  ARGV(%d) = \"%s\"\n", i, argv[i]);
  }
  if (argv[argc] == 0) {
    _imp_diagf("  ARGV(%d) = NULL\n", argc);
  } else {
    _imp_diagf("  ARGV(%d) = \"%s\"\n", argc, argv[argc]);
  }
  _imp_diagf("\nLocal Variables:\n\n");
  _imp_bt_int(RC);
  _imp_end_backtrace();
  _imp_stop(0);
}

//  2753
//  2754  %endoffile