Debian Codegraph @

gcc/testsuite/gm2/cse/pass/testcse26.mod

raw
1 (* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. *)
2 (* This file is part of GNU Modula-2.
3
4 GNU Modula-2 is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
7 version.
8
9 GNU Modula-2 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 for more details.
13
14 You should have received a copy of the GNU General Public License along
15 with gm2; see the file COPYING. If not, write to the Free Software
16 Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *)
17 MODULE testcse26 ;
18
19 FROM NumberIO IMPORT StrToBin, BinToStr ;
20
21 CONST
22 MaxBitsetSize = 32 ;
23 nul = 0C ;
24
25
26 PROCEDURE PopInt () : INTEGER ;
27 BEGIN
28 RETURN( 1 )
29 END PopInt ;
30
31
32 PROCEDURE PushInt (i: INTEGER) ;
33 BEGIN
34 END PushInt ;
35
36 PROCEDURE PushCard (i: CARDINAL) ;
37 BEGIN
38 END PushCard ;
39
40 PROCEDURE PopCard () : CARDINAL ;
41 BEGIN
42 RETURN( i )
43 END PopCard ;
44
45 PROCEDURE WriteError (a: ARRAY OF CHAR) ;
46 BEGIN
47 END WriteError ;
48
49
50 VAR
51 i: CARDINAL ;
52
53 PROCEDURE Bit ;
54 VAR
55 c : CARDINAL ;
56 Op1, Op2: CARDINAL ;
57 BEGIN
58 (* in correct bitset range *)
59 c := 0 ;
60 FOR i := Op1 TO Op2 DO
61 PushCard(i) ;
62 Bit ;
63 INC(c, PopCard())
64 END ;
65 INC(c) ;
66 Op1 := c ;
67 i := i + c ;
68 END Bit ;
69
70
71 BEGIN
72 Bit
73 END testcse26.