#include <perms.h>

                                                                //      1  %begin
#line 1 "regression-bugs-tmp/nestrec.imp"
int main(int argc, char **argv) {
  __label__ _imp_endofblock;
  _imp_initialise(argc, argv);
                                                                //      2  
                                                                //      3  %constinteger slotmax = 10
_imp_current_line = 3; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
                                                                //      4  %constinteger eqmax = 6
_imp_current_line = 4; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
                                                                //      5  %constinteger hmax = 4
_imp_current_line = 5; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
                                                                //      6  
                                                                //      7  %record(*)%name nil==record(0)
_imp_current_line = 7; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 7 "regression-bugs-tmp/nestrec.imp"
 void /*name*/*NIL;
#line 7 "regression-bugs-tmp/nestrec.imp"
NIL =  ( void /* BUG caused by a pooltostr(0) call? */  *) _imp_RECORD(0);
                                                                //      8  
                                                                //      9  %recordformat hfm(%record(hfm)%name next,%integer state,since)
_imp_current_line = 9; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 9 "regression-bugs-tmp/nestrec.imp"
typedef struct HFM HFM;
struct HFM {
   HFM /*name*/*NEXT;
  int STATE;
  int SINCE;
};
                                                                //     10  
                                                                //     11  %recordformatspec pinf
_imp_current_line = 11; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
                                                                //     12  %recordformatspec sigf
_imp_current_line = 12; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
                                                                //     13  
                                                                //     14  %recordformat compf(%record(compf)%name next,
_imp_current_line = 14; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 14 "regression-bugs-tmp/nestrec.imp"
typedef struct COMPF COMPF;
struct COMPF {
   COMPF /*name*/*NEXT;
  int TYPE;
   void /*name*/*INS;
   void /*name*/*OUTS;
   void /*name*/*PRIVATE;
};
                                                                //     15                      %integer type {indexes into behaviour switch},
                                                                //     16                      %record(pinf)%name ins,outs,private)
                                                                //     17  %recordformat pinf(%record(pinf)%name next {pin in component},
_imp_current_line = 17; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 17 "regression-bugs-tmp/nestrec.imp"
typedef struct PINF PINF;
struct PINF {
   PINF /*name*/*NEXT;
   PINF /*name*/*CHAIN;
   COMPF /*name*/*COMP;
   void /*name*/*SIGNAL;
  int STATE;
};
                                                                //     18                     chain {next pin in net},%record(compf)%name comp,
                                                                //     19                     %record(sigf)%name signal, %integer state)
                                                                //     20  %recordformat sigf(%record(sigf)%name next {for identification},
_imp_current_line = 20; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 20 "regression-bugs-tmp/nestrec.imp"
typedef struct SIGF SIGF;
struct SIGF {
   SIGF /*name*/*NEXT;
  int STATE;
   PINF /*name*/*FROM;
   PINF /*name*/*TO;
  int SCREENSLOT;
   HFM /*name*/*HISTORY;
  _imp_string /*%string(15)*/ NAME;
};
                                                                //     21                     %integer state,%record(pinf)%name from,to,
                                                                //     22                     %integer screenslot,%record(hfm)%name history,
                                                                //     23                     %string(15)name)
                                                                //     24  %recordformat eqf(%record(eqf)%name next,%record(pinf)%name pin,
_imp_current_line = 24; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 24 "regression-bugs-tmp/nestrec.imp"
typedef struct EQF EQF;
struct EQF {
   EQF /*name*/*NEXT;
   PINF /*name*/*PIN;
  int STATE;
  int WHEN;
};
                                                                //     25                    %integer state,when)
                                                                //     26  
                                                                //     27  %record(sigf)%namearray slot(1:slotmax)
_imp_current_line = 27; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 27 "regression-bugs-tmp/nestrec.imp"
 SIGF /*name*/*SLOT[10];
                                                                //     28  %record(eqf)%name eventqueue,eclist
_imp_current_line = 28; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 28 "regression-bugs-tmp/nestrec.imp"
 EQF /*name*/*EVENTQUEUE;
#line 28 "regression-bugs-tmp/nestrec.imp"
 EQF /*name*/*ECLIST;
                                                                //     29  %record(eqf)%array ecell(1:eqmax)
_imp_current_line = 29; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 29 "regression-bugs-tmp/nestrec.imp"
 EQF ECELL[6];
                                                                //     30  %integer now=0
_imp_current_line = 30; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 30 "regression-bugs-tmp/nestrec.imp"
int NOW;
#line 30 "regression-bugs-tmp/nestrec.imp"
NOW = 0;
                                                                //     31  
                                                                //     32  %integer heapspace=1
_imp_current_line = 32; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 32 "regression-bugs-tmp/nestrec.imp"
int HEAPSPACE;
#line 32 "regression-bugs-tmp/nestrec.imp"
HEAPSPACE = 1;
                                                                //     33  %integerarray heap(1:hmax)
_imp_current_line = 33; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 33 "regression-bugs-tmp/nestrec.imp"
int HEAP[4];
                                                                //     34  %record(sigf)%name nets==nil
_imp_current_line = 34; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 34 "regression-bugs-tmp/nestrec.imp"
 SIGF /*name*/*NETS;
#line 34 "regression-bugs-tmp/nestrec.imp"
NETS = NIL;
                                                                //     35  %record(compf)%name components==nil
_imp_current_line = 35; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 35 "regression-bugs-tmp/nestrec.imp"
 COMPF /*name*/*COMPONENTS;
#line 35 "regression-bugs-tmp/nestrec.imp"
COMPONENTS = NIL;
                                                                //     36  
                                                                //     37  %record (pinf) test
_imp_current_line = 37; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 37 "regression-bugs-tmp/nestrec.imp"
 PINF TEST;
                                                                //     38  
                                                                //     39  print string(test_signal_name)
_imp_current_line = 39; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 39 "regression-bugs-tmp/nestrec.imp"
_imp_PRINTSTRING(TEST.SIGNAL-> void /* BUG caused by a pooltostr(0) call? */ );
                                                                //     40  
                                                                //     41  %endofprogram
_imp_current_line = 41; _imp_current_file = "regression-bugs-tmp/nestrec.imp";
#line 41 "regression-bugs-tmp/nestrec.imp"
return 0;
_imp_endofblock: ;
} // End of block _imp_main at level 1
#line 41 "regression-bugs-tmp/nestrec.imp"
// End of file
