home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / pub / users / Harry / compilers / p6 / tst / exitErr.out.bak < prev    next >
Text File  |  2005-11-18  |  18KB  |  434 lines

  1. #1:   ---------- Body ----------
  2.         lineNumber=8
  3.         typeDecls=NULL
  4.         procDecls=NULL
  5.         varDecls=
  6. #2:       ---------- VarDecl ----------
  7.             lineNumber=8
  8.             id="i"
  9.             typeName=
  10. #3:           ---------- TypeName ----------
  11.                 lineNumber=0
  12.                 id="integer"
  13.                 myDef=NULL
  14.               ------------------------------
  15.             expr=
  16. #4:           ---------- IntegerConst ----------
  17.                 lineNumber=8
  18.                 iValue=0
  19.               ------------------------------
  20.             lexLevel=0
  21.           ------------------------------
  22.         stmts=
  23. #5:       ---------- IfStmt ----------
  24.             lineNumber=11
  25.             expr=
  26. #6:           ---------- BinaryOp ----------
  27.                 lineNumber=11
  28.                 op=EQUAL
  29.                 expr1=
  30. #7:               ---------- ValueOf ----------
  31.                     lineNumber=11
  32.                     lValue=
  33. #8:                   ---------- Variable ----------
  34.                         lineNumber=11
  35.                         id="i"
  36.                         myDef=
  37.                           *****  This node was printed earlier (#2: VarDecl) *****
  38.                         currentLevel=0
  39.                       ------------------------------
  40.                   ------------------------------
  41.                 expr2=
  42. #9:               ---------- IntegerConst ----------
  43.                     lineNumber=11
  44.                     iValue=1
  45.                   ------------------------------
  46.                 mode=INTEGER_MODE
  47.               ------------------------------
  48.             thenStmts=
  49. #10:          ---------- ExitStmt ----------
  50.                 lineNumber=11
  51.                 myLoop=NULL
  52.               ------------------------------
  53.             elseStmts=NULL
  54.           ------------------------------
  55. #11:      ---------- LoopStmt ----------
  56.             lineNumber=12
  57.             stmts=
  58. #12:          ---------- WhileStmt ----------
  59.                 lineNumber=13
  60.                 expr=
  61. #13:              ---------- BinaryOp ----------
  62.                     lineNumber=13
  63.                     op=EQUAL
  64.                     expr1=
  65. #14:                  ---------- IntegerConst ----------
  66.                         lineNumber=13
  67.                         iValue=1
  68.                       ------------------------------
  69.                     expr2=
  70. #15:                  ---------- IntegerConst ----------
  71.                         lineNumber=13
  72.                         iValue=1
  73.                       ------------------------------
  74.                     mode=INTEGER_MODE
  75.                   ------------------------------
  76.                 stmts=
  77. #16:              ---------- ForStmt ----------
  78.                     lineNumber=14
  79.                     lValue=
  80. #17:                  ---------- Variable ----------
  81.                         lineNumber=14
  82.                         id="i"
  83.                         myDef=
  84.                           *****  This node was printed earlier (#2: VarDecl) *****
  85.                         currentLevel=0
  86.                       ------------------------------
  87.                     expr1=
  88. #18:                  ---------- IntegerConst ----------
  89.                         lineNumber=14
  90.                         iValue=1
  91.                       ------------------------------
  92.                     expr2=
  93. #19:                  ---------- IntegerConst ----------
  94.                         lineNumber=14
  95.                         iValue=10
  96.                       ------------------------------
  97.                     expr3=NULL
  98.                     stmts=
  99. #20:                  ---------- IfStmt ----------
  100.                         lineNumber=15
  101.                         expr=
  102. #21:                      ---------- BinaryOp ----------
  103.                             lineNumber=15
  104.                             op=EQUAL
  105.                             expr1=
  106. #22:                          ---------- IntegerConst ----------
  107.                                 lineNumber=15
  108.                                 iValue=1
  109.                               ------------------------------
  110.                             expr2=
  111. #23:                          ---------- IntegerConst ----------
  112.                                 lineNumber=15
  113.                                 iValue=1
  114.                               ------------------------------
  115.                             mode=INTEGER_MODE
  116.                           ------------------------------
  117.                         thenStmts=
  118. #24:                      ---------- IfStmt ----------
  119.                             lineNumber=16
  120.                             expr=
  121. #25:                          ---------- BinaryOp ----------
  122.                                 lineNumber=16
  123.                                 op=EQUAL
  124.                                 expr1=
  125. #26:                              ---------- ValueOf ----------
  126.                                     lineNumber=16
  127.                                     lValue=
  128. #27:                                  ---------- Variable ----------
  129.                                         lineNumber=16
  130.                                         id="i"
  131.                                         myDef=
  132.                                           *****  This node was printed earlier (#2: VarDecl) *****
  133.                                         currentLevel=0
  134.                                       ------------------------------
  135.                                   ------------------------------
  136.                                 expr2=
  137. #28:                              ---------- IntegerConst ----------
  138.                                     lineNumber=16
  139.                                     iValue=1
  140.                                   ------------------------------
  141.                                 mode=INTEGER_MODE
  142.                               ------------------------------
  143.                             thenStmts=
  144. #29:                          ---------- ReturnStmt ----------
  145.                                 lineNumber=16
  146.                                 summary= NULL
  147.                                 expr=NULL
  148.                                 myProc=NULL
  149.                               ------------------------------
  150.                             elseStmts=NULL
  151.                           ------------------------------
  152.                         elseStmts=
  153. #30:                      ---------- IfStmt ----------
  154.                             lineNumber=18
  155.                             expr=
  156. #31:                          ---------- BinaryOp ----------
  157.                                 lineNumber=18
  158.                                 op=EQUAL
  159.                                 expr1=
  160. #32:                              ---------- ValueOf ----------
  161.                                     lineNumber=18
  162.                                     lValue=
  163. #33:                                  ---------- Variable ----------
  164.                                         lineNumber=18
  165.                                         id="i"
  166.                                         myDef=
  167.                                           *****  This node was printed earlier (#2: VarDecl) *****
  168.                                         currentLevel=0
  169.                                       ------------------------------
  170.                                   ------------------------------
  171.                                 expr2=
  172. #34:                              ---------- IntegerConst ----------
  173.                                     lineNumber=18
  174.                                     iValue=1
  175.                                   ------------------------------
  176.                                 mode=INTEGER_MODE
  177.                               ------------------------------
  178.                             thenStmts=
  179. #35:                          ---------- ReturnStmt ----------
  180.                                 lineNumber=18
  181.                                 summary= NULL
  182.                                 expr=NULL
  183.                                 myProc=NULL
  184.                               ------------------------------
  185.                             elseStmts=NULL
  186.                           ------------------------------
  187.                       ------------------------------
  188. #36:                  ---------- IfStmt ----------
  189.                         lineNumber=20
  190.                         expr=
  191. #37:                      ---------- BinaryOp ----------
  192.                             lineNumber=20
  193.                             op=EQUAL
  194.                             expr1=
  195. #38:                          ---------- ValueOf ----------
  196.                                 lineNumber=20
  197.                                 lValue=
  198. #39:                              ---------- Variable ----------
  199.                                     lineNumber=20
  200.                                     id="i"
  201.                                     myDef=
  202.                                       *****  This node was printed earlier (#2: VarDecl) *****
  203.                                     currentLevel=0
  204.                                   ------------------------------
  205.                               ------------------------------
  206.                             expr2=
  207. #40:                          ---------- IntegerConst ----------
  208.                                 lineNumber=20
  209.                                 iValue=1
  210.                               ------------------------------
  211.                             mode=INTEGER_MODE
  212.                           ------------------------------
  213.                         thenStmts=
  214. #41:                      ---------- ReturnStmt ----------
  215.                             lineNumber=20
  216.                             summary= NULL
  217.                             expr=NULL
  218.                             myProc=NULL
  219.                           ------------------------------
  220.                         elseStmts=NULL
  221.                       ------------------------------
  222.                   ------------------------------
  223. #42:              ---------- IfStmt ----------
  224.                     lineNumber=22
  225.                     expr=
  226. #43:                  ---------- BinaryOp ----------
  227.                         lineNumber=22
  228.                         op=EQUAL
  229.                         expr1=
  230. #44:                      ---------- ValueOf ----------
  231.                             lineNumber=22
  232.                             lValue=
  233. #45:                          ---------- Variable ----------
  234.                                 lineNumber=22
  235.                                 id="i"
  236.                                 myDef=
  237.                                   *****  This node was printed earlier (#2: VarDecl) *****
  238.                                 currentLevel=0
  239.                               ------------------------------
  240.                           ------------------------------
  241.                         expr2=
  242. #46:                      ---------- IntegerConst ----------
  243.                             lineNumber=22
  244.                             iValue=1
  245.                           ------------------------------
  246.                         mode=INTEGER_MODE
  247.                       ------------------------------
  248.                     thenStmts=
  249. #47:                  ---------- ReturnStmt ----------
  250.                         lineNumber=22
  251.                         summary= NULL
  252.                         expr=NULL
  253.                         myProc=NULL
  254.                       ------------------------------
  255.                     elseStmts=NULL
  256.                   ------------------------------
  257.               ------------------------------
  258. #48:          ---------- IfStmt ----------
  259.                 lineNumber=24
  260.                 expr=
  261. #49:              ---------- BinaryOp ----------
  262.                     lineNumber=24
  263.                     op=EQUAL
  264.                     expr1=
  265. #50:                  ---------- ValueOf ----------
  266.                         lineNumber=24
  267.                         lValue=
  268. #51:                      ---------- Variable ----------
  269.                             lineNumber=24
  270.                             id="i"
  271.                             myDef=
  272.                               *****  This node was printed earlier (#2: VarDecl) *****
  273.                             currentLevel=0
  274.                           ------------------------------
  275.                       ------------------------------
  276.                     expr2=
  277. #52:                  ---------- IntegerConst ----------
  278.                         lineNumber=24
  279.                         iValue=1
  280.                       ------------------------------
  281.                     mode=INTEGER_MODE
  282.                   ------------------------------
  283.                 thenStmts=
  284. #53:              ---------- ReturnStmt ----------
  285.                     lineNumber=24
  286.                     summary= NULL
  287.                     expr=NULL
  288.                     myProc=NULL
  289.                   ------------------------------
  290.                 elseStmts=NULL
  291.               ------------------------------
  292. #54:          ---------- IfStmt ----------
  293.                 lineNumber=25
  294.                 expr=
  295. #55:              ---------- BinaryOp ----------
  296.                     lineNumber=25
  297.                     op=EQUAL
  298.                     expr1=
  299. #56:                  ---------- ValueOf ----------
  300.                         lineNumber=25
  301.                         lValue=
  302. #57:                      ---------- Variable ----------
  303.                             lineNumber=25
  304.                             id="i"
  305.                             myDef=
  306.                               *****  This node was printed earlier (#2: VarDecl) *****
  307.                             currentLevel=0
  308.                           ------------------------------
  309.                       ------------------------------
  310.                     expr2=
  311. #58:                  ---------- IntegerConst ----------
  312.                         lineNumber=25
  313.                         iValue=1
  314.                       ------------------------------
  315.                     mode=INTEGER_MODE
  316.                   ------------------------------
  317.                 thenStmts=
  318. #59:              ---------- ExitStmt ----------
  319.                     lineNumber=25
  320.                     myLoop=
  321.                       *****  This node was printed earlier (#11: LoopStmt) *****
  322.                   ------------------------------
  323.                 elseStmts=NULL
  324.               ------------------------------
  325.           ------------------------------
  326. #60:      ---------- IfStmt ----------
  327.             lineNumber=27
  328.             expr=
  329. #61:          ---------- BinaryOp ----------
  330.                 lineNumber=27
  331.                 op=EQUAL
  332.                 expr1=
  333. #62:              ---------- ValueOf ----------
  334.                     lineNumber=27
  335.                     lValue=
  336. #63:                  ---------- Variable ----------
  337.                         lineNumber=27
  338.                         id="i"
  339.                         myDef=
  340.                           *****  This node was printed earlier (#2: VarDecl) *****
  341.                         currentLevel=0
  342.                       ------------------------------
  343.                   ------------------------------
  344.                 expr2=
  345. #64:              ---------- IntegerConst ----------
  346.                     lineNumber=27
  347.                     iValue=2
  348.                   ------------------------------
  349.                 mode=INTEGER_MODE
  350.               ------------------------------
  351.             thenStmts=
  352. #65:          ---------- ReturnStmt ----------
  353.                 lineNumber=27
  354.                 summary= NULL
  355.                 expr=NULL
  356.                 myProc=NULL
  357.               ------------------------------
  358.             elseStmts=NULL
  359.           ------------------------------
  360. #66:      ---------- IfStmt ----------
  361.             lineNumber=28
  362.             expr=
  363. #67:          ---------- BinaryOp ----------
  364.                 lineNumber=28
  365.                 op=EQUAL
  366.                 expr1=
  367. #68:              ---------- ValueOf ----------
  368.                     lineNumber=28
  369.                     lValue=
  370. #69:                  ---------- Variable ----------
  371.                         lineNumber=28
  372.                         id="i"
  373.                         myDef=
  374.                           *****  This node was printed earlier (#2: VarDecl) *****
  375.                         currentLevel=0
  376.                       ------------------------------
  377.                   ------------------------------
  378.                 expr2=
  379. #70:              ---------- IntegerConst ----------
  380.                     lineNumber=28
  381.                     iValue=1
  382.                   ------------------------------
  383.                 mode=INTEGER_MODE
  384.               ------------------------------
  385.             thenStmts=
  386. #71:          ---------- ExitStmt ----------
  387.                 lineNumber=28
  388.                 myLoop=NULL
  389.               ------------------------------
  390.             elseStmts=NULL
  391.           ------------------------------
  392.       ------------------------------
  393. PROGRAM IS
  394.     VAR
  395.         i: integer := 0;
  396.     BEGIN
  397.         IF (i = 1) THEN
  398.             EXIT;
  399.         END;
  400.         LOOP
  401.             WHILE (1 = 1) DO
  402.                 FOR i := 1 TO 10 DO
  403.                     IF (1 = 1) THEN
  404.                         IF (i = 1) THEN
  405.                             RETURN;
  406.                         END;
  407.                     ELSE
  408.                         IF (i = 1) THEN
  409.                             RETURN;
  410.                         END;
  411.                     END;
  412.                     IF (i = 1) THEN
  413.                         RETURN;
  414.                     END;
  415.                 END;
  416.                 IF (i = 1) THEN
  417.                     RETURN;
  418.                 END;
  419.             END;
  420.             IF (i = 1) THEN
  421.                 RETURN;
  422.             END;
  423.             IF (i = 1) THEN
  424.                 EXIT;
  425.             END;
  426.         END;
  427.         IF (i = 2) THEN
  428.             RETURN;
  429.         END;
  430.         IF (i = 1) THEN
  431.             EXIT;
  432.         END;
  433.     END;
  434.