PageRenderTime 27ms CodeModel.GetById 24ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/test/language/gc/ISMM98/MNoLfO/test_bench.e

http://github.com/tybor/Liberty
Specman e | 60 lines | 33 code | 6 blank | 21 comment | 0 complexity | e154bc3e46825c07a89f04d302246a29 MD5 | raw file
 1-- This file is part of SmartEiffel The GNU Eiffel Compiler Tools and Libraries.
 2-- See the Copyright notice at the end of this file.
 3--
 4class TEST_BENCH
 5
 6create {}
 7   make
 8
 9feature {ANY}
10   array: ARRAY[TRIANGLE]
11
12   t: TRIANGLE
13
14   p1, p2, p3: POINT
15
16   make
17      local
18         i, j: INTEGER
19      do
20         from
21            i := 4_000
22            create array.make(1, 2_000)
23         until
24            i = 0
25         loop
26            from
27               j := 2_000
28            until
29               j = 0
30            loop
31               create p1.make(1.0, 1.0)
32               create p2.make(2.0, 2.0)
33               create p3.make(3.0, 3.0)
34               create t.make(p1, p2, p3)
35               array.put(t, j)
36               j := j - 1
37            end
38            i := i - 1
39         end
40      end
41
42end -- class TEST_BENCH
43--
44-- ------------------------------------------------------------------------------------------------------------------------------
45-- Copyright notice below. Please read.
46--
47-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License,
48-- as published by the Free Software Foundation; either version 2, or (at your option) any later version.
49-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty
50-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have
51-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free
52-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
53--
54-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P.       - University of Nancy 1 - FRANCE
55-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE
56--
57-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN
58--
59-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr
60-- ------------------------------------------------------------------------------------------------------------------------------