#include <perms.h>
// Edinburgh IMP77 Compiler - Version 8.4
//
// 1 %begin
int main(int argc, char **argv) { /*%begin*/
_imp_initialise(argc, argv);
// 2 %integerarray xx1(100:199)
int XX1[100];
_imp_create_constdv(, int, XX1, 100, 199);
// 3 %integerarray xx2,xx3(100:199)
int XX2[100];
_imp_create_constdv(, int, XX2, 100, 199);
int XX3[100];
_imp_create_constdv(, int, XX3, 100, 199);
// 4 %integerarray xx4(100:199)
int XX4[100];
_imp_create_constdv(, int, XX4, 100, 199);
// 5 %integerarray yy2(0:9, 1:10)
int YY2[10][10];
_imp_create_constdv(, int, YY2, 0, 9, 1, 10);
// 6 %recordformat recarraysfm(%c
struct RECARRAYSFM {
union {
struct {
int P1[100];
int Q2[10];
};
};
};
// 7+ %integerarray p1(100:199),
// 8+ %integerarray q2(0:9{, 1:10}) { ONLY 1-D ARRAYS WITH CONST BOUNDS ALLOWED IN RECORDS } %c
// 9+ )
// 10 %record (recarraysfm) wreck
struct RECARRAYSFM WRECK;
// 11 %endofprogram
_imp_stop(0);
return 0;
end_0:;
}