#include <perms.h>

//          Edinburgh IMP77 Compiler - Version 8.4
//
//     1  %begin

int main(int argc, char **argv) { /*%begin*/
  _imp_initialise(argc, argv);

  //     2    %ownshortintegerarray  p(0:255) = 42, 24, 99(252), 16_ab, 16_cd

  static short int P[256] = {42, 24, [2 ... 253] = 99, 171, 205};

  //     3    %ownshortintegerarray  q(-128:127) = 42, 24, 99(252), 16_ab, 16_cd

  static short int Q[256] = {42, 24, [2 ... 253] = 99, 171, 205};

  //     4    %ownshortintegerarray  r(1000:1255) = 42, 24, 99(*)

  static short int R[256] = {42, 24, [2 ... 255] = 99};

  //     5    %integer i

  int I;

  //     6    i = p(100)

  I = P[100];

  //     7    i = q(-28)

  I = Q[100];

  //     8    i = r(1100)

  I = R[100];

  //     9  %endofprogram

  _imp_stop(0);
  return 0;
end_0:;
}